What problem does it solve?
It prevents performance regressions and architectural mistakes by enforcing React 19 patterns that align with the React Compiler, correct Server/Client boundaries, and modern hook usage.
Core Features & Use Cases
- No manual memoization: Enforces avoiding useMemo/useCallback when the React Compiler can optimize automatically, reducing accidental bugs and over-engineering.
- Correct import and component structure: Standardizes named React imports and avoids default/namespace React imports that conflict with modern patterns.
- Server Components first: Guides whether components should be Server or Client and when to use "use client" for interactivity, hooks, and browser APIs.
- Advanced primitives: Covers using the use() hook for promise/suspense-like reads, and using Actions with useActionState for server-driven forms and pending UI.
- Modern ref handling: Recommends treating ref as a prop instead of relying on forwardRef unnecessarily.
Quick Start
Use the react-19 skill when you are creating a React 19 .tsx component or hook and want the code to follow React Compiler-friendly patterns, correct Server/Client usage, and modern actions and refs.