react-design-patterns

Installation
SKILL.md

React Design Patterns

Overview

13 patterns ranked by 2025 popularity. Golden rule: start with a Custom Hook — upgrade to Compound Components only if structural sharing is needed.

Pattern Decision Guide

Need Pattern
Reusable logic, no UI opinion Custom Hook
Controlled vs uncontrolled component behavior Control Props
Tightly coupled UI subcomponents (Tabs, Modal, Accordion) Compound Components
Logic without imposed styling Headless Component
Separate data fetching from rendering Container / Presentational
Global stable state (auth, theme) Provider (Context)
Reverse data flow (child → parent) Render Props
Full render control via children Children as Function
Flexible API with pre-built props Props Getters
Related skills

More from b4r7x/agent-skills

Installs
27
First Seen
Mar 11, 2026