react

Guide React 19 component development with hooks, TypeScript, and performance practices.

1|Updated Mar 16, 2026
One-click install
npx skills add https://github.com/michelve/hugin-cowork --skill react-michelve
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: react
Source: https://github.com/michelve/hugin-cowork/tree/main/skills/react
Command: npx skills add https://github.com/michelve/hugin-cowork --skill react-michelve

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) and assets (resource) components.

What problem does it solve?

This skill provides guidance and best practices for developing modern React 19 applications, ensuring components are efficient, maintainable, and leverage the latest features.

Core Features & Use Cases

  • Component Structure: Learn optimal ways to organize React components.
  • Hooks & State Management: Master useState, useEffect, useCallback, useMemo, and custom hooks.
  • Performance Optimization: Implement techniques like React.memo, code splitting, and virtualization.
  • TypeScript Integration: Ensure type safety for props, state, and hooks.
  • Use Case: When creating a new feature component, follow the provided checklist to ensure it adheres to React 19 best practices, including proper hook usage, prop typing, and performance considerations.

Quick Start

Create a new React function component using the provided template, ensuring all props are properly typed and event handlers are memoized with useCallback.

Frequently Asked Questions about react

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

FAQPage Schema
How do I build robust React 19 components with proper TypeScript typing?

To build robust React 19 components, use the provided templates to ensure all props are properly typed with TypeScript and event handlers are memoized with useCallback for maintainable structure.

What's the best way to optimize React component performance and prevent re-renders?

Optimize React component performance by implementing techniques like React.memo for memoization, code splitting for lazy loading, and virtualization to efficiently handle large lists and prevent unnecessary re-renders.

How do I manage state and use hooks correctly in modern React applications?

Manage state in modern React by mastering useState, useEffect, useCallback, useMemo, and custom hooks while avoiding common pitfalls like conditional hooks and direct state mutation.

Can I use Suspense and lazy loading for code splitting in React 19?

Yes, you can implement code splitting in React 19 by using Suspense and lazy loading to dynamically load components, which improves initial load performance and overall application efficiency.

Why does my React component break when I use conditional hooks?

Conditional hooks break React components because hooks must be called in the exact same order on every render; placing them inside conditions or loops violates React's rules of hooks.

Do I need TypeScript to follow these React 19 best practices?

TypeScript is strongly recommended for React 19 best practices to ensure type safety for props, state, and hooks, resulting in more robust and maintainable component structures.