react-19

Implement React 19 patterns with the React Compiler across server and client components.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Developers often struggle to implement React 19 patterns consistently across projects, especially when leveraging the React Compiler for performance optimizations.

Core Features & Use Cases

  • Server-first patterns: guidance for writing server components by default and knowing when to switch to client components.
  • use() hook usage and refs as props: correct application of the React 19 features, including the use() hook for suspending data and avoiding unnecessary forwardRef complexity.
  • Guidance for Next.js App Router/Server Actions: how to structure components within Next.js architecture to maximize server rendering and interactivity.

Quick Start

Create a sample page that demonstrates a server component rendering a list, a client component handling a button click, and appropriate imports as shown in the examples.

Frequently Asked Questions about react-19

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

FAQPage Schema
How do I structure server and client components in Next.js App Router with React 19?

To structure server and client components in Next.js App Router, write server components by default and switch to client components only for interactivity. Define explicit import rules and server/client boundaries to satisfy React 19 conventions.

Do I need forwardRef in React 19 when using the React Compiler?

You do not need forwardRef in React 19 when using the React Compiler. React 19 allows passing refs as props directly, avoiding unnecessary forwardRef complexity for component development.

How does the use() hook work for suspending data in React 19?

The use() hook works in React 19 by suspending data fetching within the component tree. It allows developers to read promises directly and pause rendering until data resolves, optimizing server-first rendering patterns.

What is the best way to define server/client boundaries with Server Actions in React 19?

The best way to define server/client boundaries with Server Actions is by establishing explicit import rules. Structure your components within the Next.js architecture to maximize server rendering while isolating client interactivity.

When should I switch from a server component to a client component in React 19?

You should switch from a server component to a client component in React 19 when you need client-side interactivity, such as handling button clicks. Keep server components as the default for rendering lists and static content.

Does the React Compiler require TypeScript for React 19 patterns?

The React Compiler powers React 19 patterns effectively with TypeScript. Using TypeScript helps enforce explicit import rules and component boundaries, ensuring correct application of server-first and client interactivity conventions.