React Component Architecture
Reusable React component patterns covering functional components, custom hooks, composition, and typed props, with reference guides.
- CCM score
- 36 of 100
- skills.sh installs
- 688
- GitHub stars
- 396
- last updated
- Aug 21, 2026
Own this skill? Claim it
What it does
- Covers functional components with hooks, custom hooks, composition, higher-order components, and render props patterns
- Includes a typed
Buttonquick start with variant, size, and disabled props, plus five reference guides inreferences/ - Provides a DO and DON'T checklist covering testing, error handling, and avoiding hard-coded configuration values
- Designed for component library design, large React applications, reusable UI patterns, and performance optimization work
Install
$ npx -y skills add aj-geddes/useful-ai-prompts --skill react-component-architecture -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
React Component Architecture
Table of Contents
Overview
Build scalable, maintainable React components using modern patterns including functional components, hooks, composition, and TypeScript for type safety.
When to Use
- Component library design
- Large-scale React applications
- Reusable UI patterns
- Custom hooks development
- Performance optimization
Quick Start
Minimal working example:
// Button.tsx
import React, { useState, useCallback } from 'react';
interface ButtonProps {
variant?: 'primary' | 'secondary' | 'danger';
size?: 'sm' | 'md' | 'lg';
disabled?: boolean;
onClick?: () => void;
children: React.ReactNode;
}
export const Button: React.FC<ButtonProps> = ({
variant = 'primary',
size = 'md',
disabled = false,
onClick,
children
}) => {
const variantStyles = {
primary: 'bg-blue-500 hover:bg-blue-600',
secondary: 'bg-gray-500 hover:bg-gray-600',
danger: 'bg-red-500 hover:bg-red-600'
};
Details
- Repository
- github.com/aj-geddes/useful-ai-prompts
- Category
- Frontend & UI Code
- First seen
- Jun 3, 2026
More from aj-geddes/useful-ai-prompts
All 258- Agile Sprint Planning685
- Docker Containerization685
- Log Analysis685
- Project Estimation680
- Security Compliance Audit679
- Gitlab Cicd Pipeline676
- Websocket Implementation672
- Requirements Gathering667
- Image Optimization666
- Ruby Rails Application662
- Internationalization I18n651
- Api Rate Limiting650
- Information Architecture643
- Unit Testing Framework637
- Backup Disaster Recovery634
- Color Accessibility630
- Github Actions Workflow630
- Fastapi Development628
- Static Code Analysis625
- Aws Lambda Functions622
- Vulnerability Scanning622
- Data Encryption621
- User Research Analysis621
- Time Series Analysis620
Similar to React Component Architecture
More Frontend & UI Codereact-composition-patternssecondsky/claude-skills505 installsReact composition patterns that scale for refactoring boolean-prop components and designing flexible, reusable APIs.
react-patternssickn33/agentic-awesome-skills1.2K installsModern React guidance covering components, hooks, state, React 19, performance, and TypeScript typing.
web-component-designwshobson/agents14.2K installsReusable UI component patterns across React, Vue, and Svelte, covering styling and API design.
react-composition-2026patternsdev/skills1.3K installsComposition patterns for React components that replace boolean-prop sprawl with explicit, context-shared designs.
typescript-react-patternsasyrafhussin/agent-skills1.2K installsA reference catalog of 33 TypeScript typing rules for React components, hooks, events, refs, and generics.