What problem does it solve?
This skill helps you prevent common React/Next.js component bugs and performance regressions by steering you away from anti-patterns like misuse of useEffect, manual data fetching, stale closures, and premature memoization.
Core Features & Use Cases
- Consultor guidance on React component patterns: Explain what’s wrong in the user’s current approach and how to structure the correct pattern without providing full replacement code.
- Targeted fixes for high-risk topics: useEffect (especially when it should be derived state), data fetching (TanStack Query over manual fetch/axios), stale closures, and memoization/state-management decision rules.
- Actionable verification criteria: Provide a review checklist to confirm the fix reduces re-renders, eliminates race/memory-leak risks, and aligns client/server state boundaries.
Use Case Example: When a user shares a component that fetches user data inside useEffect and manages loading/error manually, the skill guides them to switch to a declarative TanStack Query pattern and explains which bug classes are eliminated.
Quick Start
Ask the skill to review a specific React component pattern, for example: "Analyze my React component’s useEffect data fetching and suggest the correct TanStack Query approach with verification criteria."