react-19

Enforce React Compiler optimization and named imports in React 19 components.

Updated Mar 25, 2026
One-click install
npx skills add https://github.com/zeshone/zesh-one-skills --skill react-19-zeshone
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: react-19
Source: https://github.com/zeshone/zesh-one-skills/tree/main/skills/frontend/react-19
Command: npx skills add https://github.com/zeshone/zesh-one-skills --skill react-19-zeshone

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

React 19 patterns with the React Compiler rewrite component development by removing the need for manual memoization and encouraging server-first patterns, improving performance and reducing boilerplate.

Core Features & Use Cases

  • Enforces named imports from "react" and sets Server Components as default; client interactivity is opt-in with "use client".
  • Introduces the use() hook to read promises or access context, including conditional context usage.
  • Provides useActionState for tracking form submission state and pending indicators.
  • Treats refs as plain props (no forwardRef) to simplify component interfaces.

Quick Start

Enable the React Compiler in Next.js 15 and begin building components with server components by default.

Frequently Asked Questions about react-19

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

FAQPage Schema
How do I stop using manual memoization in React 19?

Manual memoization in React 19 is eliminated by enabling the React Compiler. The compiler automatically optimizes components, removing the need for useMemo and useCallback while improving performance and reducing boilerplate.

How do I configure the React Compiler in Next.js 15?

To configure the React Compiler in Next.js 15, you must explicitly enable it within your next.config.ts file. This allows your project to leverage compiler-based optimizations for server and client components.

Does React 19 require forwardRef for passing refs to components?

React 19 does not require forwardRef for passing refs. The framework now treats refs as plain props, simplifying component interfaces and eliminating the need for forwardRef wrappers entirely.

How does the use() hook work for promises and context in React 19?

The use() hook in React 19 reads promises or accesses context directly. It uniquely allows conditional context usage within components, streamlining asynchronous data fetching and state management logic.

What is the default component type in Next.js 15 with React 19?

Server components are the default component type in React 19 and Next.js 15. Client interactivity is opt-in, requiring explicit 'use client' directives to ensure safe client components.

How do I track form submission state in React 19?

You track form submission state in React 19 using the useActionState hook. It manages pending indicators and form submission state, simplifying asynchronous form handling without manual state variables.