Hooks

A shop ledger page, 1899. Every line adds up.
React State That Will Not Re-render, and When You Do Not Need useEffect
Fix state that does not update the UI by avoiding mutation, then remove unnecessary effects by deriving values during render and choosing better data-fetching patterns.
5 min read
Why useEffect Loops Forever and How to Fix the Dependency Array
Diagnose infinite useEffect loops caused by objects and arrays recreated each render, state updates in effects, and missing cleanup, with concrete fixes.
4 min read