react-19

Refactor TSX components to comply with React 19 patterns.

2|Updated Oct 14, 2025
One-click install
npx skills add https://github.com/LuisDavidTF/Culina-Smart --skill react-19-luisdavidtf
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: react-19
Source: https://github.com/LuisDavidTF/Culina-Smart/tree/main/.agent/skills/react-19
Command: npx skills add https://github.com/LuisDavidTF/Culina-Smart --skill react-19-luisdavidtf

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps developers consistently implement React 19 patterns using the React Compiler, reducing boilerplate and ensuring future compatibility across server and client components.

Core Features & Use Cases

  • Enforces React 19 conventions in .tsx components and hooks, including server components-first guidance and server/client boundaries.
  • Guides on imports, memoization practices, and ref handling to align with React Compiler rules.
  • Useful for teams migrating to React 19 or adopting Next.js app router/server actions with Next.js 15 compatibility.

Quick Start

Use the react-19 skill to refactor a given TSX file to comply with React 19 patterns by removing manual memoization, using explicit imports, and applying server-components-first rules.

Frequently Asked Questions about react-19

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

FAQPage Schema
How do I refactor TSX components to remove manual memoization for React 19?

Refactoring TSX components for React 19 involves removing manual memoization and relying on the React Compiler to handle optimization automatically. This Skill guides applying server-components-first rules and explicit imports to align with new conventions.

What is the server-components-first approach in the Next.js App Router?

The server-components-first approach in the Next.js App Router defaults to rendering components on the server to reduce client-side JavaScript. This Skill helps establish proper server and client component boundaries using 'use client' directives.

Do I need the React Compiler to use React 19 server and client components?

The React Compiler is essential for applying React 19 patterns automatically without manual memoization. This Skill uses the compiler to enforce conventions across server and client components, ensuring boilerplate reduction and future compatibility.

How do I handle refs as props in React 19 TSX files?

Handling refs as props in React 19 TSX files requires passing ref attributes directly to child components instead of using forwardRef. This Skill enforces ref-as-prop patterns and other React Compiler rules during the refactoring process.

Does this Skill support Next.js 15 server actions and App Router migration?

Yes, this Skill supports Next.js 15 compatibility by guiding teams migrating to React 19 and adopting the App Router. It covers server actions, 'use client' guidance, and 'use()' semantics for a smooth transition.