What problem does it solve?
This Skill helps developers read, write, and refactor React components by reducing incorrect or overused effects, preventing common hook mistakes, and promoting patterns that produce predictable, testable components.
Core Features & Use Cases
- Effect Guidance: When to use effects versus event handlers, memoization, or render-time calculations.
- Hook & Ref Patterns: Recommendations for useMemo, useEffectEvent, refs, updater functions, and useImperativeHandle.
- Component Design: Advice on controlled vs uncontrolled components, composition over prop drilling, key-based resets, cleanup, and linter-friendly custom hooks.
- Use Case: Use this Skill during code review or refactoring to convert effect-heavy code into handler-driven, memoized, and ref-focused implementations and to pair React work with TypeScript patterns.
Quick Start
Review the attached React .tsx or .jsx file and recommend refactorings to remove unnecessary useEffect usage, apply appropriate hooks and refs, and align with TypeScript patterns.