What problem does it solve?
This skill documents modern React 19 patterns to remove manual memoization and outdated component patterns, allowing developers to rely on the React Compiler and framework features for correct and efficient rendering.
Core Features & Use Cases
- Eliminate Manual Memoization: Avoid useMemo/useCallback and let the React Compiler handle stable identities and optimizations.
- Server Components First: Default to server components, using "use client" only for interactive needs like state, effects, and event handlers.
- Modern APIs & Patterns: Guidance on named imports, use() for reading promises or conditional contexts, server actions with useActionState, and treating ref as a normal prop.
- Use Case: Build a Next.js page that fetches data on the server, passes it to a lightweight client component for interactivity, and manage form submissions with server actions and pending state indicators.
Quick Start
Start by authoring server components by default, use named imports, avoid useMemo/useCallback, add "use client" only when you need state or event handlers, and use the documented action and use() patterns for async and server interactions.