What problem does it solve?
This Skill helps developers write modern React 19 components and hooks, leveraging the React Compiler for automatic optimizations and adhering to best practices for server components, client components, and the new use() hook.
Core Features & Use Cases
- Automatic Optimization: Write components without manual memoization (
useMemo, useCallback) as the React Compiler handles it.
- Modern Imports: Enforces named imports for React hooks and functions.
- Server/Client Components: Guides the correct usage of Server Components (default) and Client Components (
"use client" directive).
use() Hook: Demonstrates the use of the use() hook for reading promises and conditional context.
- Actions &
useActionState: Provides examples for server actions and managing pending states.
ref as Prop: Illustrates the simplified way to pass refs in React 19.
Quick Start
Write a new React 19 component using named imports and no manual memoization.