Smit Desaismitd.hashnode.dev·Apr 14, 2024Mastering React RoutingWhenever a STATE VARIABLE is updated, React re-renders the entire component. useEffect's CB function is called only when the entire Component is rendered. The CB Fn. will be executed after every render/re-render (-) useEffect(()=>{ console.log('...28 readsswiggy apiAdd a thoughtful commentNo comments yetBe the first to start the conversation.