react-19

Guide React 19 component implementation using React Compiler patterns without manual memoization.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/WannaCry081/React-Workflow-Starter --skill react-19-wannacry081
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: react-19
Source: https://github.com/WannaCry081/React-Workflow-Starter/tree/main/.agents/skills/react-19
Command: npx skills add https://github.com/WannaCry081/React-Workflow-Starter --skill react-19-wannacry081

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

React development often suffers from over-optimizing components with manual memoization. This Skill promotes React 19 patterns and the React Compiler to ensure clean, predictable rendering without unnecessary useMemo/useCallback boilerplate.

Core Features & Use Cases

  • No Manual Memoization: rely on the React Compiler to optimize rendering.
  • Import Best Practices: prefer named imports and modern syntax.
  • Server Components First: start with server components and opt into client components with 'use client' when needed.
  • Hook Guidance: use the use() hook and useActionState patterns where applicable.
  • Ref as Prop: embrace the modern ref-as-prop semantics for simpler components.

Quick Start

Create a simple React 19 component that renders a list without manual useMemo or useCallback.

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 handle memoization in React 19?

The React Compiler automatically optimizes rendering in React 19, allowing you to skip manual memoization. It eliminates the need for useMemo and useCallback boilerplate by handling component optimizations during the build process.

Do I need to use 'use client' for all components in React 19?

No, React 19 follows a server components-first approach. You should start with server components and only opt into client components by adding the 'use client' directive where interactivity is required.

What is the best way to use hooks in React 19 components?

React 19 encourages using the use() hook and useActionState patterns for modern component development. These hooks simplify state management and asynchronous operations without manual memoization.

How do I pass refs to components in React 19?

React 19 embraces ref-as-prop semantics, allowing you to pass ref directly as a standard prop without forwardRef. This simplifies component composition and reduces boilerplate code.

Why should I use named imports in React 19?

Named imports are recommended in React 19 to ensure proper tree-shaking and compatibility with the React Compiler. This practice supports cleaner code and predictable rendering behavior.

Can I still use useMemo and useCallback with the React Compiler?

While technically possible, using manual memoization defeats the purpose of the React Compiler. The compiler automatically handles optimizations, making useMemo and useCallback unnecessary in most React 19 components.