react-composition
SKILL.md
React Composition Patterns
Composition patterns for building flexible, maintainable React components. Avoid boolean prop proliferation by using compound components, lifting state, and composing internals. These patterns make codebases easier to work with as they scale.
When to Apply
- Refactoring components with many boolean props
- Building reusable component libraries
- Designing flexible component APIs
- Working with compound components or context providers
Pattern Overview
| # | Pattern | Impact |
|---|---|---|
| 1 | Avoid Boolean Props | CRITICAL |