DEV Community

Discussion on: Understanding useCallback in react

Collapse
 
apoorva2404 profile image
Apoorva Sharma • Edited

Amazing post! But If we put a log outside the useEffect hook, the Score component is still getting rendered every time we are entering some text in the player name input field which defeats the purpose of avoiding re-render unnecessarily. Why not use memo along with useCallback?