react-19

Guide React 19 development with React Compiler, Server Components, and the use() hook.

1|Updated Feb 19, 2026
One-click install
npx skills add https://github.com/sebastianlujan/zlend --skill react-19-sebastianlujan
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: react-19
Source: https://github.com/sebastianlujan/zlend/tree/main/.claude/skills/react-19
Command: npx skills add https://github.com/sebastianlujan/zlend --skill react-19-sebastianlujan

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps developers adopt the latest patterns and best practices for React 19, leveraging the React Compiler for automatic optimizations and understanding new features like the use() hook and Server Actions.

Core Features & Use Cases

  • Automatic Optimization: Eliminates the need for manual memoization (useMemo, useCallback) with React Compiler.
  • Modern Hooks: Demonstrates correct usage of the use() hook for promises and conditional context.
  • Server Components & Actions: Guides on structuring applications with Server Components and implementing Server Actions with useActionState.
  • Ref Handling: Shows the simplified way to pass ref as a prop in React 19.
  • Use Case: Refactoring an existing React application to be compatible with React 19, ensuring optimal performance and leveraging new features for cleaner, more efficient code.

Quick Start

Write a React 19 component using named imports and avoid manual memoization.

Frequently Asked Questions about react-19

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How does the React Compiler change memoization in React 19?

The React Compiler enables automatic optimization in React 19, eliminating the need for manual memoization techniques like useMemo and useCallback. It automatically handles render optimizations, allowing developers to write cleaner code without manually wrapping functions or values to prevent unnecessary re-renders.

How do I use the use() hook for promises and context in React 19?

The use() hook in React 19 allows you to read promises and context conditionally within components. Unlike traditional hooks, it can be called inside conditionals or loops, providing a flexible way to handle asynchronous data and conditional context access without strict top-level invocation rules.

What is the correct way to pass ref as a prop in React 19?

React 19 simplifies ref handling by allowing you to pass ref as a standard prop without requiring forwardRef. This ref-as-prop pattern streamlines component APIs, making function components cleaner by accessing refs directly from the props object instead of wrapping components.

How do I implement Server Actions with useActionState in React 19?

Implement Server Actions in React 19 using the useActionState hook to manage form submissions and server mutations. This pattern integrates Server Components and Actions, allowing direct server-side function execution from client components while automatically tracking pending states and form action results.

Do I need Next.js to use React 19 Server Components?

While Next.js provides a framework with built-in support for React 19 Server Components, the Server Components architecture is a core React feature. You can structure applications using Server Components to render UI on the server, reducing client-side JavaScript and improving initial load performance.

Why should I use named imports instead of default imports in React 19?

Using named imports in React 19 ensures better tree-shaking and compatibility with the React Compiler's automatic optimizations. This import pattern aligns with modern React development paradigms, helping maintain optimal performance and ensuring the compiler can effectively analyze and optimize your component code.