TLDR Tech / Dev
Why we banned React's useEffect
Factory banned useEffect in their React codebase after production bugs convinced them it's more trouble than it's worth. Dependency arrays hide coupling, effect chains create race conditions, and it's the first thing AI agents reach for when they don't know what else to do. Almost every real useEffect use case has a better primitive: derive state inline, use a data-fetching library, put logic in event handlers, or use a key prop to force remounts.
Read the full story