react-avoid-effects
Installation
SKILL.md
You Might Not Need an Effect
Effects are React's escape hatch for synchronizing with external systems — browser APIs, network requests, third-party libraries. If no external system is involved, you probably don't need one.
Before writing or accepting a useEffect, run through the checks below.
The core question
"Does this code run because the component was displayed, or because of a specific user interaction?"
- Runs because of a user action → event handler, not an Effect
- Runs because the component displayed → might be an Effect, but check the patterns below first