react-typescript

Generate typed React TypeScript components, hooks, and context providers.

3|1|Updated Nov 28, 2025
One-click install
npx skills add https://github.com/iButters/ClaudeCodePlugins --skill react-typescript
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: react-typescript
Source: https://github.com/iButters/ClaudeCodePlugins/tree/main/plugins/ui-kit-generator/skills/react-typescript
Command: npx skills add https://github.com/iButters/ClaudeCodePlugins --skill react-typescript

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Modern React 19 with TypeScript development, covering components, hooks, context, and strong typing patterns.

Core Features & Use Cases

  • Component Structure with FC<Props>, ReactNode, and proper props typing.
  • Typing Guidelines for events, generics, and polymorphism.
  • Custom Hooks Pattern for reusable logic.
  • Context Pattern for shared state.
  • Integration with Atomic Design and CSS Tokens.

Quick Start

Create a small React component with typed props, add a context provider, and a sample hook.

Frequently Asked Questions about react-typescript

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

FAQPage Schema
How do I set up type-safe React components with TypeScript?

Type-safe React components require explicit prop typing using interfaces or types, proper return type annotations, and React's FC generic. Define props interfaces, apply them to your component signature, and annotate event handlers and state types to enable compile-time checking and prevent runtime errors across typed components.

What's the best way to type React hooks with TypeScript?

Type React hooks by annotating state types in useState, specifying dependency array element types, and declaring explicit return types for custom hooks. Use generics for reusable hook logic, type event parameters, and reference parameters to create maintainable, reusable logic that catches type mismatches before runtime.

How do I implement a typed context provider in React with TypeScript?

Create a typed context by defining a context interface, wrapping your provider component with explicit type annotations, and using generics for context values. Type the useContext hook call, ensure providers and consumers align on types, and apply discriminated unions for complex state shapes to enable type-safe shared state.

Can I build polymorphic components in React with TypeScript?

Polymorphic components use discriminated unions and conditional types to accept different prop shapes based on a variant or component type prop. TypeScript enables strict typing for each variant, preventing invalid prop combinations and ensuring that polymorphic buttons, forms, or layout primitives maintain type safety across usage contexts.

Do TypeScript React patterns work with design systems and component libraries?

TypeScript React patterns integrate directly with design systems through typed prop interfaces, CSS token references, and reusable component primitives. Apply Atomic Design principles with explicit typing, forwardRef support for ref forwarding, and generic components to build scalable, type-checked component libraries.

What accessibility considerations apply to typed React components?

Accessible typed React components require proper ARIA attribute typing, semantic HTML element selection, and event handler types that support keyboard and pointer interactions. Enforce accessibility patterns through component prop types, ensuring focused components expose required ARIA attributes and keyboard behavior through typed interfaces.