react-19

Guide React 19 component development with React Compiler and modern hooks.

1|Updated Dec 30, 2025
One-click install
npx skills add https://github.com/statick88/dotfiles --skill react-19-statick88
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: react-19
Source: https://github.com/statick88/dotfiles/tree/main/amp/.agents/skills/react-19
Command: npx skills add https://github.com/statick88/dotfiles --skill react-19-statick88

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps developers adopt modern React 19 patterns, particularly leveraging the React Compiler to eliminate the need for manual memoization (useMemo, useCallback) and enforce best practices for Server Components and the new use() hook.

Core Features & Use Cases

  • Automatic Optimization: Write React components without useMemo or useCallback, as the React Compiler handles optimizations.
  • Component Best Practices: Enforces named imports and prioritizes Server Components.
  • Modern Hooks: Demonstrates the usage of the new use() hook for handling promises and conditional context.
  • Actions and State: Shows how to implement server actions with useActionState for managing form submissions and pending states.
  • Simplified Refs: Illustrates passing ref as a direct prop, removing the need for forwardRef.

Quick Start

Write a React component using the new patterns for React 19, ensuring no manual memoization is used.

Frequently Asked Questions about react-19

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

FAQPage Schema
Do I need to use useMemo and useCallback in React 19?

You do not need useMemo or useCallback in React 19 because the React Compiler automatically handles memoization and optimizations for your components.

How do I use the new use hook in React 19?

The new use hook in React 19 allows developers to handle promises and conditional context directly within components, replacing traditional data fetching patterns.

Can I pass ref as a prop without forwardRef in React 19?

You can pass ref as a direct prop to components in React 19, eliminating the need for forwardRef and simplifying your ref handling implementation.

What is the best way to manage form submission state in React 19?

The best way to manage form state is using the useActionState hook, which implements server actions and manages pending states for form submissions.

How do React Server Components affect imports?

React Server Components best practices enforce using named imports and prioritize Server Components to optimize server interactions and rendering performance.