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
Own this skill? Claim it
What it does
- Covers Server Components by default,
"use client"boundaries, theuse()hook, and Actions withuseActionState - Includes named-import rules,
refpassed as a regular prop instead offorwardRef, and a list of when"use client"is required - Enforces no
useMemooruseCallbackcalls and no defaultReactimports 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 -yInstalls 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 13Similar to React 19
More Frontend & UI Codereact-patternssickn33/agentic-awesome-skills1.2K installsModern React guidance covering components, hooks, state, React 19, performance, and TypeScript typing.
reactpedronauck/skills501 installsReact 19 components and hooks under React Compiler: memoization, purity, Effects, state placement, and Vitest testing.
react-devsoftaworks/agent-toolkit4.2K installsType-safe React 18-19 patterns covering generic components, event typing, hooks, and router integration.
react-server-componentspatternsdev/skills1.1K installsServer-side rendering skill for React Server Components, with guidance on when to keep components on the server.
react-best-practicesalleneubank/claude-code3.2K installsDecision-tree guide for React components that steers logic away from unnecessary Effects toward render, events, and refs.
react-expertjeffallan/claude-skills6.1K installsSenior React skill for React 19 apps, covering Server Components, Suspense, and hooks-based architecture.