React
Jul 2026 7 min read
Most of Your useEffects Shouldn't Exist
useEffect is the most reached-for and most misused hook in React. Most effects I see are syncing state that could be computed, resetting state a key would reset, or running logic that belongs in an event handler. A field guide to the effects you can delete & the few that genuinely need to stay.
Read more