What problem does it solve?
This Skill helps developers adopt modern React 19 patterns, particularly leveraging the React Compiler to eliminate the need for manual memoization (useMemo, useCallback) and enforce best practices for Server Components and the new use() hook.
Core Features & Use Cases
- Automatic Optimization: Write React components without
useMemo or useCallback, as the React Compiler handles optimizations.
- Component Best Practices: Enforces named imports and prioritizes Server Components.
- Modern Hooks: Demonstrates the usage of the new
use() hook for handling promises and conditional context.
- Actions and State: Shows how to implement server actions with
useActionState for managing form submissions and pending states.
- Simplified Refs: Illustrates passing
ref as a direct prop, removing the need for forwardRef.
Quick Start
Write a React component using the new patterns for React 19, ensuring no manual memoization is used.