Loading...
Loading...
React composition patterns that scale. Use when refactoring components with boolean prop proliferation, building flexible component libraries, or designing reusable APIs. Triggers on tasks involving compound components, render props, context providers, or component architecture. Includes React 19 API changes. Do NOT use for React/Next.js performance optimization (use react-best-practices instead).
npx skill4agent add tech-leads-club/agent-skills react-composition-patterns| Priority | Category | Impact | Prefix |
|---|---|---|---|
| 1 | Component Architecture | HIGH | |
| 2 | State Management | MEDIUM | |
| 3 | Implementation Patterns | MEDIUM | |
| 4 | React 19 APIs | MEDIUM | |
architecture-avoid-boolean-propsarchitecture-compound-componentsstate-decouple-implementationstate-context-interfacestate-lift-statepatterns-explicit-variantspatterns-children-over-render-props⚠️ React 19+ only. Skip this section if using React 18 or earlier.
react19-no-forwardrefforwardRefuse()useContext()rules/architecture-avoid-boolean-props.md
rules/state-context-interface.mdAGENTS.md