What problem does it solve? React codebases often accumulate anti-patterns like derived state in useEffect, misplaced global stores, missing error boundaries, and inaccessible markup. This Skill provides decision trees and concrete code patterns so components are written and reviewed against consistent React 18/19 idioms. ## Core Features & Use Cases - Hooks and State Discipline: Enforces top-level hook calls, cleanup of subscriptions, functional state updaters, and a decision tree for choosing between useState, lifted state, Context, external stores, and server-state libraries. - Server/Client Component Boundaries: Covers RSC composition, Suspense and error boundary placement, React 19 form actions with useActionState, and optimistic UI with useOptimistic. - Data Fetching and Performance: Provides a decision matrix for TanStack Query, SWR, and RSC fetch, plus guidance on React.memo, context splitting, list virtualization, and accessibility-first composition. - Use Case: When reviewing a pull request that fetches data inside useEffect and stores derived totals in state, use this Skill to rewrite the component with TanStack Query and render-time derivation. ## Quick Start Ask the assistant to review your React component or design a new one using the React patterns skill, for example by requesting a form built with React 19 actions and proper error boundaries.