react-19

Guide React 19 development with React Compiler, Server Components, and new hooks.

Updated Feb 18, 2026
One-click install
npx skills add https://github.com/vanhoangkha/cloud-security-audit --skill react-19-vanhoangkha
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: react-19
Source: https://github.com/vanhoangkha/cloud-security-audit/tree/main/multi-cloud/prowler/skills/react-19
Command: npx skills add https://github.com/vanhoangkha/cloud-security-audit --skill react-19-vanhoangkha

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps developers adopt and correctly implement the new patterns and best practices introduced with React 19, particularly those related to the React Compiler and modern Next.js features.

Core Features & Use Cases

  • Optimized Components: Guides users away from manual memoization towards automatic optimizations provided by the React Compiler.
  • Modern Imports: Enforces named imports for better tree-shaking and clarity.
  • Server/Client Components: Demonstrates correct usage of Server Components and the "use client" directive.
  • New Hooks: Illustrates the usage of the use() hook for promises and conditional context, and useActionState for form handling.
  • Simplified Refs: Shows how ref can be passed as a direct prop, eliminating the need for forwardRef.

Quick Start

Use the react-19 skill to refactor a React component to use 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 do I refactor React components to stop using manual memoization with React 19?

To refactor React components for React 19, remove manual memoization hooks like useMemo and useCallback, relying on the React Compiler to automatically optimize rendering performance and simplify component architecture.

What is the correct way to use the use() hook for asynchronous data fetching in React 19?

The use() hook in React 19 allows you to unwrap promises directly within your component for asynchronous data fetching and conditionally access context, simplifying state management.

How do I handle form submissions in Next.js using the new useActionState hook?

The useActionState hook manages form submission state in React 19 and Next.js, allowing you to track pending states and handle results from server actions seamlessly without manual state tracking.

Can I pass ref as a direct prop instead of using forwardRef in React 19?

Yes, React 19 allows you to pass ref as a direct prop to components, simplifying ref handling by eliminating the need for the forwardRef wrapper entirely.

Does React 19 require named imports for better tree-shaking in Next.js applications?

Yes, React 19 enforces named imports to improve tree-shaking and code clarity, ensuring better bundle optimization in Next.js and standard React applications.

What's the best way to structure Server Components and the use client directive in React 19?

The best practice for React 19 is to default to Server Components for data fetching and static rendering, using the "use client" directive only for client-side interactive logic.