react-component-architecture

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

By aj-geddes · 654 installs

npx skills add aj-geddes/useful-ai-prompts --skill react-component-architecture

Source repository · Upstream listing

React Component Architecture Table of Contents [Overview]( overview) [When to Use]( when to use) [Quick Start]( quick start) [Reference Guides]( reference guides) [Best Practices]( 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: Reference Guides Detailed implementations in the references/ directory: Guide Contents [Functional Component with Hooks](references/functional component with hooks.md) Functional Component with Hooks [Custom Hooks Pattern](references/custom hooks pattern.md) Custom Hooks Pattern [Composition Pattern](references/composition pattern.md) Composition Pattern [Higher Order Component (HOC)](references/higher order component hoc.md) Higher Order Component (HOC) [Render Props Pattern](references/render props pattern.md) 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