react-19

Enforce React 19 server and client component patterns with the use() hook.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/lgsalinasp7/appInstituto --skill react-19-lgsalinasp7
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: react-19
Source: https://github.com/lgsalinasp7/appInstituto/tree/main/.agent/skills/react-19
Command: npx skills add https://github.com/lgsalinasp7/appInstituto --skill react-19-lgsalinasp7

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

React developers often struggle with optimizing renders due to manual memoization. React 19 patterns encourage relying on the compiler and server components to minimize unnecessary work.

Core Features & Use Cases

  • Server Components First: build default pages using server components to minimize client-side work.
  • Client Components When Needed: opt into client components only for interactive parts, using "use client" to mark them.
  • Import Patterns: prefer named imports from react and related libraries over default or namespace imports.
  • use() Hook: leverage React's use hook to handle promises in server components or similar patterns.
  • Actions & useActionState: pattern for async actions with pending state in client components.
  • ref as Prop: treat ref as a prop rather than forwardRef in the new approach.

Quick Start

Start by writing server components, then mark interactive parts as client components and import the required APIs explicitly to maximize compiler optimizations.

Frequently Asked Questions about react-19

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

FAQPage Schema
How do I eliminate manual memoization in React 19 components?

To eliminate manual memoization in React 19 components, rely on the React compiler and adopt server components first to minimize client-side work, opting into client components only for interactive parts.

When should I use server components versus client components in React 19?

Use server components by default for pages to reduce client-side work, marking interactive parts as client components with "use client" to selectively opt into client-side rendering where needed.

How does the use() hook handle data flows in React server components?

The use() hook handles data flows by leveraging promises directly within server components or similar patterns, allowing you to manage asynchronous data fetching without manual memoization.

Do I still need forwardRef to pass refs in React 19?

You do not need forwardRef to pass refs in React 19. The new approach treats ref as a standard prop, simplifying component APIs and reducing unnecessary wrapper layers.

What is the best way to manage async actions and pending state in React 19 client components?

The best way to manage async actions and pending state in React 19 client components is using the Actions and useActionState pattern to handle asynchronous operations smoothly.

What import patterns optimize React 19 compiler performance?

To optimize React 19 compiler performance, prefer named imports from react and related libraries over default or namespace imports, explicitly importing required APIs to maximize compiler optimizations.