What problem does it solve?
This Skill provides a comprehensive guide to modern React patterns, solving the problem of inefficient and outdated practices in React development.
Core Features & Use Cases
- Component Design Principles: Offers best practices for component types, including server, client, presentational, and container components.
- Hook Patterns: Teaches when and how to extract hooks, with detailed rules for using them effectively.
- State Management: Covers state management strategies for different complexity levels, including useState, useReducer, Context, React Query, SWR, Zustand, and Redux Toolkit.
- Performance Optimization: Guides on performance principles, including when to optimize, optimization order, and error handling.
- Testing Principles: Provides insights into testing at unit, integration, and end-to-end levels.
- TypeScript Patterns: Offers best practices for props typing, common types, and using TypeScript effectively in React.
- Anti-Patterns: Lists common anti-patterns and their alternatives to improve code quality.
- New Hooks: Introduces new hooks like useActionState, useOptimistic, and use for better development practices.
Quick Start
To understand the core concepts, read the section on Component Design Principles.