Skip to content

React 19 component patterns that rely on React Compiler instead of manual memoization.

CCM score
59 of 100
skills.sh installs
278
GitHub stars
681
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers Server Components by default, "use client" boundaries, the use() hook, and Actions with useActionState
  • Includes named-import rules, ref passed as a regular prop instead of forwardRef, and a list of when "use client" is required
  • Enforces no useMemo or useCallback calls and no default React imports in component code
  • Designed for writing React components in projects already set up with React 19 and the React Compiler

Install

$ npx -y skills add gentleman-programming/gentleman-skills --skill react-19 -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

No Manual Memoization (REQUIRED)

// ✅ React Compiler handles optimization automatically
function Component({ items }) {
  const filtered = items.filter(x => x.active);
  const sorted = filtered.sort((a, b) => a.name.localeCompare(b.name));

  const handleClick = (id) => {
    console.log(id);
  };

  return <List items={sorted} onClick={handleClick} />;
}

// ❌ NEVER: Manual memoization
const filtered = useMemo(() => items.filter(x => x.active), [items]);
const handleClick = useCallback((id) => console.log(id), []);

Imports (REQUIRED)

// ✅ ALWAYS: Named imports
import { useState, useEffect, useRef } from "react";

// ❌ NEVER
import React from "react";
import * as React from "react";

Server Components First

// ✅ Server Component (default) - no directive
export default async function Page() {
  const data = await fetchData();
  return <ClientComponent data={data} />;
}

// ✅ Client Component - only when needed
"use client";
export function Interactive() {
  const [state, setState] = useState(false);
  return <button onClick={() => setState(!state)}>Toggle</button>;
}

When to use "use client"

Details

Repository
github.com/gentleman-programming/gentleman-skills
Category
Frontend & UI Code
First seen
Jun 3, 2026

Questions

What does the react-19 skill do?

The react-19 skill teaches an agent React 19 patterns with the React Compiler, so it skips manual useMemo and useCallback calls. It also covers server components first, named imports, use(), useActionState, and ref passed as a plain prop.

How do I install the react-19 skill?

Run npx -y skills add gentleman-programming/gentleman-skills --skill react-19 -y in your project. Afterwards, the agent follows React 19 patterns when it writes React components.

Which other skills lead the Frontend and UI Code category?

On Claude Marketplaces, react-19 sits in the Frontend and UI Code category alongside vercel-react-best-practices, web-design-guidelines, design-taste-frontend, and vercel-composition-patterns. Its focus is React 19 with the React Compiler, so it avoids manual memoization.

When should I use the react-19 skill?

Use it when writing React components in a React 19 project. It applies to server and client component choices, form Actions with pending state, and use() for reading promises or conditional context.

More from gentleman-programming/gentleman-skills

All 13

Similar to React 19

More Frontend & UI Code