You probably don’t need that useEffect in your React app
A hard look at React’s most misunderstood feature
3 min readNov 11, 2023
After many years of PR reviews for React code, my most common feedback is the same timeless phrase: “You probably don’t need that useEffect”. Like many other override patterns in software, useEffect
gives us an escape hatch for when we need to go against the core principle of what React…