react-19

Define React 19 patterns for .tsx components with the React Compiler.

1|Updated Jan 20, 2026
One-click install
npx skills add https://github.com/ScorpionConMate/crm-influ-webview --skill react-19-scorpionconmate
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: react-19
Source: https://github.com/ScorpionConMate/crm-influ-webview/tree/main/.opencode/skills/react-19
Command: npx skills add https://github.com/ScorpionConMate/crm-influ-webview --skill react-19-scorpionconmate

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps frontend teams reduce boilerplate and enforce best practices when writing React 19 components and hooks with the React Compiler, especially in .tsx files. It provides guidance to align server and client component usage, hook patterns, and prop handling in React 19 contexts.

Core Features & Use Cases

  • Server Components First: guidance on default server components and when to opt into client components.
  • Use Client Hygiene: rules for when to use use client and modern React Compiler constraints.
  • Pattern Enforcement: recommended patterns for imports, memoization avoidance, and use() hook usage.
  • Use Case: converting a mixed server/client component tree in a Next.js app to optimize rendering and data fetching.

Quick Start

Start by applying the React 19 patterns to a new .tsx file, for example create ItemList.tsx that uses server components by default and a small Interactive client component with useState and onClick.

Frequently Asked Questions about react-19

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

FAQPage Schema
How do I structure server and client components in React 19?

Structure React 19 components by defaulting to server components and opting into client components only when necessary. This architecture optimizes rendering and data fetching in Next.js apps by enforcing correct 'use client' directives.

When should I use the use client directive in Next.js?

Use the 'use client' directive in Next.js when a component requires interactivity like useState or onClick event handlers. Maintain use client hygiene by isolating client-side logic to small interactive components.

How does the React Compiler change hook patterns in .tsx files?

The React Compiler automates memoization in .tsx files, changing hook patterns by making manual memoization unnecessary. It enforces specific rules for imports and the use() hook to optimize component re-rendering.

Can I pass refs as props in React 19 without forwardRef?

React 19 allows passing refs as props directly to components without forwardRef. This pattern simplifies component APIs but requires alignment with React Compiler rules to ensure correct rendering behavior.

What is the best way to convert a mixed component tree to server-components-first?

The best way to convert a mixed component tree is to refactor root layouts as server components for data fetching while extracting interactive leaf nodes into discrete client components with 'use client' boundaries.

Why does my React 19 component fail React Compiler rules?

Components fail React Compiler rules when they violate constraints around manual memoization, improper hook usage, or incorrect import patterns in server-components-first architectures. Aligning hook patterns resolves these conflicts.