What problem does it solve? React components accumulate boolean props like isThread, isEditing, and isDMThread as features grow, creating exponential state combinations, hidden conditionals, and unmaintainable code. This Skill provides concrete refactoring patterns to replace prop proliferation with composition. ## Core Features & Use Cases - Compound Component Architecture: Structure complex components with shared context so consumers compose exactly the pieces they need without prop drilling. - Dependency-Injectable State: Define generic context interfaces (state, actions, meta) so the same UI works with local useState, Zustand, or server-synced providers. - React 19 API Guidance: Replace forwardRef with ref-as-prop and useContext with the use() hook for React 19 codebases. - Use Case: When refactoring a message composer that has grown to six boolean props, apply these patterns to split it into explicit ThreadComposer, EditComposer, and ForwardComposer variants sharing compound internals. ## Quick Start Refactor this React component to eliminate its boolean props using compound components and a lifted context provider.