react-19

Enforce server-components-first React 19 patterns with React Compiler and named imports.

618|89|Updated Jan 16, 2026
One-click install
npx skills add https://github.com/Gentleman-Programming/Gentleman-Skills --skill react-19
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: react-19
Source: https://github.com/Gentleman-Programming/Gentleman-Skills/tree/main/curated/react-19
Command: npx skills add https://github.com/Gentleman-Programming/Gentleman-Skills --skill react-19

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill provides React 19 patterns that leverage the React Compiler to minimize manual memoization and enforce a server-components-first workflow.

Core Features & Use Cases

  • Server Components First: default to server components and only introduce client components when interactivity is required.
  • Import Patterns: prefer named imports and explicit 'use client' annotations to control rendering boundaries.
  • Modern Hooks & Server Actions: demonstrates the use of the use() hook and server actions where applicable.

Quick Start

Load a React 19 component file that follows server-components-first structure, import React APIs using named imports, and add 'use client' only where interactivity is needed.

Frequently Asked Questions about react-19

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

FAQPage Schema
How do I minimize manual memoization in React 19?

React 19's compiler automatically optimizes rendering without manual memoization. Use named imports, apply server-components-first patterns, and add 'use client' only where interactivity is required to let the compiler handle optimization.

What's the difference between server and client components in React 19?

Server components render on the server by default, reducing bundle size and enabling secure data access. Client components handle interactivity and browser APIs. Mark client boundaries explicitly with 'use client' to enforce this separation.

How do I structure React 19 components with server-components-first patterns?

Start with server components as your default. Use named imports for React APIs, add 'use client' directives only to components requiring user interaction, and leverage the use() hook and server actions to manage server-client boundaries effectively.

When should I use the use() hook in React 19?

The use() hook unwraps promises and context in client and server components, enabling async data handling at component level. Apply it where you need to pass server-resolved values to client components across boundaries.

Do I need to manually memoize components with React 19?

No. The React Compiler automatically detects and applies memoization where needed. Follow server-components-first conventions and use named imports to ensure the compiler can optimize your component tree effectively.

Can I use server actions with client components in React 19?

Yes. Server actions work seamlessly with client components, allowing you to call server-side logic from interactive UI without exposing backend code. Mark functions with 'use server' and call them from 'use client' components.