React 19 Development Guidelines

Guide React 19 development with Compiler, Actions, and Hooks best practices.

1|Updated Feb 7, 2026
One-click install
npx skills add https://github.com/SantiCombina/stock-flow --skill react-19-development-guidelines
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: React 19 Development Guidelines
Source: https://github.com/SantiCombina/stock-flow/tree/main/skills/react-19
Command: npx skills add https://github.com/SantiCombina/stock-flow --skill react-19-development-guidelines

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides comprehensive guidance and best practices for developing modern React applications, specifically leveraging the new features introduced in React 19, such as the React Compiler, Actions, and new Hooks.

Core Features & Use Cases

  • React 19 Features: Detailed explanations and code examples for React Compiler, Actions, useOptimistic, and use() hook.
  • Hooks Best Practices: Demonstrates correct usage of useState, useEffect, useRef, useContext, useReducer, and useTransition.
  • Custom Hooks: Pattern for creating reusable custom hooks.
  • Form Handling: Examples using useActionState and React Hook Form.
  • Performance Optimization: Techniques like React.memo, code splitting, and virtual lists.
  • Error Handling: Implementation of Error Boundaries.
  • Common Patterns: Compound Components and Render Props.
  • Anti-Patterns: Common mistakes to avoid in React development.
  • Testing: Basic example using React Testing Library.

Quick Start

Follow the React 19 Development Guidelines to build a new component using functional components and TypeScript.

Frequently Asked Questions about React 19 Development Guidelines

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

FAQPage Schema
How do I use the React 19 Compiler and Actions in my web development workflow?

React 19 Compiler and Actions automate memoization and handle async operations, simplifying state updates. This Skill provides detailed code examples and best practices for integrating these features into your functional components to improve performance and reduce boilerplate.

What is the best way to handle forms with useActionState and useOptimistic in React 19?

Handling forms in React 19 utilizes useActionState for form state and useOptimistic for immediate UI updates. This Skill demonstrates implementation patterns using these new hooks alongside React Hook Form to create robust, type-safe form workflows.

Can I use TypeScript with the new use() hook and custom hooks in React 19?

TypeScript works seamlessly with the use() hook and custom hooks by enforcing type-safety across your functional components. This Skill outlines patterns for creating reusable custom hooks and leveraging declarative programming with strict typing.

How do I optimize React performance and implement Error Boundaries in modern frontend development?

Optimizing React performance involves techniques like React.memo, code splitting, and virtual lists, while Error Boundaries catch runtime errors in the component tree. This Skill provides implementation guidance for both to ensure robust application stability.

What are common React anti-patterns to avoid when building functional components?

Common React anti-patterns include misusing useEffect for data synchronization and overcomplicating component logic. This Skill identifies frequent mistakes in functional components and provides corrective patterns like Compound Components and Render Props.