react-19

Standardize React 19 component authoring with named imports and server-first patterns.

3|2|Updated Mar 25, 2026
One-click install
npx skills add https://github.com/zaid-khan-code/learnHub-ai-powered-online-learning-platform-lms --skill react-19-zaid-khan-code
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: react-19
Source: https://github.com/zaid-khan-code/learnHub-ai-powered-online-learning-platform-lms/tree/main/.agents/skills/react-19
Command: npx skills add https://github.com/zaid-khan-code/learnHub-ai-powered-online-learning-platform-lms --skill react-19-zaid-khan-code

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps developers write React 19 code that follows modern best practices without unnecessary manual optimization or outdated component patterns.

Core Features & Use Cases

  • No Manual Memoization: Encourages direct computation and event handlers instead of useMemo and useCallback.
  • Server Components First: Promotes server-rendered components by default and reserves client components for interactivity.
  • Modern React 19 APIs: Guides the use of use(), useActionState, and ref as a prop in practical UI scenarios.
  • Use Case: When building a Next.js page with data fetching, forms, and interactive UI, this Skill keeps the implementation aligned with React 19 conventions and reduces boilerplate.

Quick Start

Create a React 19 component that follows these rules: use named imports, avoid manual memoization, prefer server components, and only add use client when interactivity requires it.

Frequently Asked Questions about react-19

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

FAQPage Schema
Do I need useMemo and useCallback in React 19 components?

React 19 server components run on the server by default for data fetching and static rendering. You only add the use client directive when building interactive client components that require browser APIs or user event handling.

How do I handle refs in React 19 without forwardRef?

In React 19, you handle refs by passing ref as a normal prop directly to components. This eliminates the need for forwardRef, simplifying component APIs and aligning with modern ref handling patterns.

Can I use the use() hook for data fetching in Next.js pages?

Yes, you can use the use() hook in Next.js pages to unwrap promises and handle fetched data within server components. This modern React 19 API streamlines asynchronous data loading without manual memoization.

What are the limitations of removing manual memoization in React 19?

Removing manual memoization in React 19 limits fine-grained control over expensive client-side calculations. While the compiler handles optimization automatically, developers must rely on server components and correct use client boundaries to manage rendering performance.