Loading source
Pulling the file list, source metadata, and syntax-aware rendering for this listing.
Source from repo
Apply React composition patterns to build flexible, maintainable components without boolean prop sprawl
Files
Skill
Size
Entrypoint
Format
Open file
Syntax-highlighted preview of this file as included in the skill package.
rules/_sections.md
1# Sections23This file defines all sections, their ordering, impact levels, and descriptions.4The section ID (in parentheses) is the filename prefix used to group rules.56---78## 1. Component Architecture (architecture)910**Impact:** HIGH11**Description:** Fundamental patterns for structuring components to avoid prop12proliferation and enable flexible composition.1314## 2. State Management (state)1516**Impact:** MEDIUM17**Description:** Patterns for lifting state and managing shared context across18composed components.1920## 3. Implementation Patterns (patterns)2122**Impact:** MEDIUM23**Description:** Specific techniques for implementing compound components and24context providers.2526## 4. React 19 APIs (react19)2728**Impact:** MEDIUM29**Description:** React 19+ only. Don't use `forwardRef`; use `use()` instead of `useContext()`.30