React Expert guides Claude through React work in six steps: analyze the component hierarchy, choose state and data-fetching patterns, implement in TypeScript, validate with tsc, optimize and add accessibility, then test with React Testing Library.
It includes patterns for a Next.js Server Component, a React 19 form with useActionState and a custom hook with effect cleanup, plus reference files for state, performance and class component migration.
What You Get
- A six-step workflow that runs tsc —noEmit and returns to the type step when new errors appear
- Patterns for a Server Component, a useActionState form and a custom hook with cleanup
- Reference files for Server Components, React 19 features, state management, hooks, performance, testing and class migration
- Rules against mutating state, index keys on dynamic lists and inline functions in JSX
- An output template with a typed component file, a test file and a note on key decisions
Common Use Cases
- Building a typed component with Suspense and error boundaries
- Choosing between Context, Zustand, Redux and TanStack Query
- Writing a form with React 19 actions
- Converting class components to hooks or Server Components
- Fixing re-render and performance problems with memoization and virtualization
What Makes It Unique
The skill is current with React 19, covering the use hook, useActionState and Server Components, and it includes a migration reference from class components. Type checking is a loop in the workflow, and its constraint list pairs each rule with the failure it prevents, such as effect cleanup against memory leaks.
Under The Hood
The skill is instructions and reference markdown that Claude loads by topic; it ships no scripts. Following it, Claude writes component and test files in your project and runs tsc —noEmit and your test runner. The Server Component example reads from a database in your own app, and the skill does not call outside services itself.