react-components

Document React component design best practices for TypeScript projects.

1|Updated Jan 22, 2026
One-click install
npx skills add https://github.com/MLGBJDLW/vellum --skill react-components-mlgbjdlw
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: react-components
Source: https://github.com/MLGBJDLW/vellum/tree/main/packages/core/src/skill/builtin/react-components
Command: npx skills add https://github.com/MLGBJDLW/vellum --skill react-components-mlgbjdlw

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Standardize React component design by codifying best practices for maintainable, type-safe, and accessible components in TypeScript.

Core Features & Use Cases

  • Single Responsibility: Each component should do one thing well
  • Props Over State: Prefer controlled components; lift state when needed
  • Type Everything: Use TypeScript interfaces for all props and state
  • Composition Over Inheritance: Build complex UIs by composing simple components
  • Custom Hooks & Patterns: Encourage reusable hooks and patterns like render props and compound components
  • Accessibility First: Include ARIA attributes and keyboard navigation
  • Anti-Patterns: Highlight common pitfalls and how to avoid them
  • Examples & Guidance: Real-world usage and code samples provided

Quick Start

Create a typed UserCard component that follows the rules, uses hooks, and demonstrates composition and accessibility.

Frequently Asked Questions about react-components

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

FAQPage Schema
What are the best practices for building reusable React components in TypeScript?

Best practices for reusable React components in TypeScript include enforcing single responsibility, defining typed interfaces for all props, preferring composition over inheritance, and building controlled components to ensure maintainability and type safety across your projects.

How do I structure React hooks and patterns for scalable UI development?

Structure React hooks and patterns for scalable UI development by extracting reusable logic into custom hooks, applying composition patterns like render props and compound components, and prioritizing state lifting to maintain predictable and modular UI behavior.

How do I ensure accessibility is implemented correctly in React components?

Ensure accessibility in React components by incorporating ARIA attributes, implementing comprehensive keyboard navigation, and following an accessibility-first design approach that standardizes interactions for users relying on assistive technologies.

What are common anti-patterns to avoid when designing React components?

Common React component anti-patterns to avoid include overusing internal state instead of props, creating monolithic components that violate single responsibility, and skipping TypeScript interfaces, which collectively degrade type safety and maintainability.

Can I use these React component patterns for design system development?

Yes, these React component patterns are highly effective for design system development because they codify robust, reusable hooks, enforce strict TypeScript typing, and standardize accessibility, ensuring consistent and scalable UI components across multiple projects.