React Patterns Full Reference : See advanced.md for Container/Presentational, State Machine, Slots, Polymorphic, and Provider patterns. Compound Components Components that work together to form a cohesive UI: --- Render Props Pass a function as children or prop to control rendering: --- Higher-Order Components (HOC) Wrap components to add functionality: --- Custom Hooks Pattern Extract reusable logic into hooks: --- Composition Pattern Prefer composition over inheritance: --- Best Practices Summary | Pattern | When to Use | |---------|-------------| | Compound Components | Flexible, related c…