6 ms·
useEffect is best thought of as a synchronization mechanism between external state and react state and the function it returns may actually be better thought of
by ericlewis 2y ago
useEffect is best thought of as a synchronization mechanism between external state and react state and the function it returns may actually be better thought of as a side effect. UseEffect makes sense in this case because you aren’t on the side!