A compilation of React Patterns, techniques, tips and tricks.
Your contributions are heartily ♡ welcome. (✿◠‿◠)
- Design Patterns and Techniques
- Stateless Functions
- JSX Spread Attributes
- Destructuring Arguments
- Conditional Rendering
- Children Types
- Array As Children
- Function As Children
- Render Callback
- Children Pass Through
- Proxy Component
- Style Component
- Event Switch
- Layout Component
- Container Component
- Higher Order Component
- State Hoisting
- Controlled-Uncontrolled Input
- Conditional in JSX
- Async Nature Of setState()
- Dependency Injection
- Context Wrapper
- Event Handlers
- Flux Pattern
- One Way Data Flow
- Presentational vs Container
- Third Party Integration
- Passing Function To setState()
- Decorators
- Feature Flags
- Component Switch
- Reaching Into A Component
- List Components
- Format Text via Component
- Share Tracking Logic
- Anti-Patterns
- Handling UX Variations
- Perf Tips
- Styling
- Gotchas
- References