react-dev

Provides TypeScript patterns for building type-safe React 18 and 19 applications.

Updated May 11, 2026
One-click install
npx skills add https://github.com/irizqi/agent-skills --skill react-dev-irizqi
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: react-dev
Source: https://github.com/irizqi/agent-skills/tree/main/skills/react-dev
Command: npx skills add https://github.com/irizqi/agent-skills --skill react-dev-irizqi

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This skill eliminates TypeScript guesswork in React development by providing compile-time guarantees, confident refactoring, and production-ready patterns that catch bugs before runtime.

Core Features & Use Cases

  • Type-Safe Components: Provides patterns for props, children, and discriminated unions for variant components.
  • Modern React 19 Support: Includes guidance on Server Components, Server Actions, and the use() hook.
  • Generic Components: Offers reusable patterns for tables, lists, and modals that infer types automatically.
  • Use Case: When building a complex, reusable Table component, use this skill to implement generic constraints that ensure column keys match the data structure, providing full IDE autocompletion.

Quick Start

Use the react-dev skill to generate a type-safe button component that extends native HTML button props and supports variant-based styling.

Frequently Asked Questions about react-dev

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

FAQPage Schema
How do I implement type-safe React components with TypeScript and variant props?

Type-safe React components use discriminated unions for variant props, ensuring compile-time validation for styling. This approach catches invalid prop combinations before runtime and provides full IDE autocompletion for component configurations.

What are the best TypeScript patterns for building generic React components like tables?

Generic React components use TypeScript constraints to infer data types automatically. Implementing generic patterns for tables ensures column keys match the data structure, providing type safety and autocompletion for reusable UI elements.

How do I add types for React 19 Server Components and Server Actions in TypeScript?

React 19 Server Components and Server Actions require specific TypeScript patterns to maintain type safety across the server-client boundary. These patterns ensure compile-time guarantees for asynchronous server-side data fetching and form action handling.

Does this approach support extending native HTML element props in React?

Yes, type-safe React patterns support extending native HTML element props. You can generate components that inherit native button props while adding custom variant-based styling, ensuring full compatibility with standard DOM attributes.

How do I migrate React 18 TypeScript applications to React 19 without breaking type safety?

Migrating React 18 to 19 involves adopting modern APIs like the use() hook while maintaining existing compile-time type safety. Efficient migration patterns ensure production-ready code catches bugs during the transition without runtime regressions.