What problem does it solve? React codebases often accumulate anti-patterns like derived state in useEffect, misplaced state, missing Suspense boundaries, and inaccessible markup. This Skill provides decision trees and idiomatic patterns so components are written and reviewed consistently against React 18/19 best practices. ## Core Features & Use Cases - Hooks and State Discipline: Enforces top-level hook usage, functional updaters, cleanup of subscriptions, and a decision tree for choosing useState, lifted state, Context, or external stores like Zustand and TanStack Query. - Server/Client Component Boundaries: Covers RSC composition, serializable props, Server Actions, React 19 form actions with useActionState, and optimistic UI with useOptimistic. - Composition, Performance, and Accessibility: Provides slot, compound component, and render prop recipes, guidance on when React.memo and virtualization actually help, and accessibility-first rules for semantic HTML and keyboard navigation. - Use Case: When reviewing a pull request that fetches data inside useEffect and stores derived totals in state, use this Skill to rewrite it with TanStack Query and render-time derivation. ## Quick Start Ask the assistant to review your React component file and apply the react-patterns rules for hooks, state placement, and data fetching.