react-19

Eliminate manual memoization in React components using React 19 compiler optimizations.

2|Updated Jul 29, 2025
One-click install
npx skills add https://github.com/kurojs/ender4-dots --skill react-19-kurojs
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: react-19
Source: https://github.com/kurojs/ender4-dots/tree/main/.config/opencode/skill/react-19
Command: npx skills add https://github.com/kurojs/ender4-dots --skill react-19-kurojs

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This pattern set helps React developers avoid boilerplate memoization by embracing React Compiler optimizations for component rendering.

Core Features & Use Cases

  • Server Components First: Prefer server components and only opt-in for client components when interactivity is required.
  • Automatic Memoization Avoidance: Rely on compiler-managed optimization to reduce manual useMemo/useCallback.
  • Pattern-Based Guidance: Provide design templates for common component scenarios (lists, props, effects) using React 19 rules.

Quick Start

Describe how to convert a standard React component by removing useMemo and useCallback, and rely on the compiler's optimizations.

Frequently Asked Questions about react-19

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

FAQPage Schema
How do I remove manual useMemo and useCallback in React 19?

To remove manual memoization in React 19, delete useMemo and useCallback hooks and rely on the React Compiler to automatically optimize component rendering and manage performance.

What is automatic memoization in the React Compiler?

Automatic memoization in the React Compiler is a mechanism that manages component rendering optimization internally, allowing developers to skip manual useMemo and useCallback boilerplate entirely.

When should I use React server components instead of client components?

You should use React server components by default for UI rendering, only opting into client components when specific interactivity or client-side state is required by the widget.

Does React 19 support automatic optimization for lists and interactive widgets?

Yes, React 19 supports automatic optimization for lists and interactive widgets by applying compiler-based rules that handle typical component performance pitfalls without manual memoization.

What are the limitations of relying on React 19 compiler-based optimization?

Limitations include requiring React 19 tooling and strict adherence to compiler optimization rules, which limit client-side memoization and enforce server components by default for performance.