What problem does it solve?
This Skill helps developers and reviewers identify when a React useEffect is not synchronizing with an external system and can be safely removed or replaced with a simpler pattern, reducing redundant state, preventing stale updates, and clarifying component behavior.
Core Features & Use Cases
- Effect classification: Guides you to classify each useEffect as derived render data, event response, prop-driven reset, or external synchronization.
- Replacement patterns: Recommends minimal replacements such as render-time derivation, useMemo for expensive pure work, moving logic into event handlers, keyed subtree resets, storing IDs instead of mirrored objects, useSyncExternalStore for subscriptions, and guarded fetch cleanup.
- Review workflow and guardrails: Provides a step-by-step review checklist, decision table, and constraints to avoid removing necessary synchronization with timers, DOM APIs, sockets, or network code.
Quick Start
Use this skill to analyze a React function component, locate each useEffect, classify whether it synchronizes with an external system, and propose the smallest refactor that preserves behavior.