React TL;DR – a human filter for most useful React content.
Five common mistakes writing react components (with hooks) in 2020
Using useState when no rerender is needed Using router.push instead of a link Handling actions via useEffect Single responsibility components Single responsibility useEffects ...
useEffect vs useLayoutEffect
useLayoutEffect: If you need to mutate the DOM and/or DO need to perform measurements useEffect: If you don’t need to interact with the ...