Smithery Logo
MCPsSkillsDocsPricing
Login
NewFlame, an assistant that learns and improves. Available onTelegramSlack
    aj-geddes

    react-component-architecture

    aj-geddes/react-component-architecture
    Design
    59
    2 installs

    About

    SKILL.md

    Install

    • Telegram
      Telegram
    • Slack
      Slack
    • Claude Code
      Claude Code
    • Codex
      Codex
    • OpenClaw
      OpenClaw
    • Cursor
      Cursor
    • Amp
      Amp
    • GitHub Copilot
      GitHub Copilot
    • Gemini CLI
      Gemini CLI
    • Kilo Code
      Kilo Code
    • Junie
      Junie
    • Replit
      Replit
    • Windsurf
      Windsurf
    • Cline
      Cline
    • Continue
      Continue
    • OpenCode
      OpenCode
    • OpenHands
      OpenHands
    • Roo Code
      Roo Code
    • Augment
      Augment
    • Goose
      Goose
    • Trae
      Trae
    • Zencoder
      Zencoder
    • Antigravity
      Antigravity
    • Download skill
    ├─
    ├─
    └─
    Smithery Logo

    Give agents more agency

    Resources

    DocumentationPrivacy PolicySystem Status

    Company

    PricingAboutBlog

    Connect

    © 2026 Smithery. All rights reserved.

    About

    Design scalable React components using functional components, hooks, composition patterns, and TypeScript. Use when building reusable component libraries and maintainable UI systems.

    SKILL.md

    React Component Architecture

    Table of Contents

    • Overview
    • When to Use
    • Quick Start
    • Reference Guides
    • Best Practices

    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'
      };
    
      const sizeStyles = {
    // ... (see reference guides for full implementation)
    

    Reference Guides

    Detailed implementations in the references/ directory:

    Guide Contents
    Functional Component with Hooks Functional Component with Hooks
    Custom Hooks Pattern Custom Hooks Pattern
    Composition Pattern Composition Pattern
    Higher-Order Component (HOC) Higher-Order Component (HOC)
    Render Props Pattern Render Props Pattern

    Best Practices

    ✅ DO

    • Follow established patterns and conventions
    • Write clean, maintainable code
    • Add appropriate documentation
    • Test thoroughly before deploying

    ❌ DON'T

    • Skip testing or validation
    • Ignore error handling
    • Hard-code configuration values
    Recommended Servers
    Databutton
    Databutton
    Codeinterpreter
    Codeinterpreter
    tldraw
    tldraw
    Repository
    aj-geddes/useful-ai-prompts
    Files