What problem does it solve?
It reduces inconsistent React codebases by giving production-ready component, hooks, state, performance, and testing patterns that help you avoid common anti-patterns.
Core Features & Use Cases
- Component Design Principles: Choose server/client/presentational/container patterns and follow clear rules like single responsibility and composition over inheritance.
- Hook & State Management Guidance: Extract reusable hooks, keep hook order stable, and select the right state approach (local, context, server state via React Query/SWR, or global stores like Zustand/Redux Toolkit).
- React 19 + TypeScript Best Practices: Apply modern React 19 hooks and compiler benefits while typing props, events, refs, and children safely.
- Performance, Error Handling, and Testing: Profile first, use virtualization and memoization appropriately, structure error boundaries and recovery, and prioritize unit/integration/E2E tests by user impact.
Quick Start
Use the react-patterns skill to review your React component and refactor it to follow hook rules, lift state appropriately, and improve performance with targeted optimizations.