What problem does it solve?
Reduces uncertainty and rework by providing production-ready React patterns for organizing code, managing state, handling async data, and writing reliable tests.
Core Features & Use Cases
- Project structure & composition idioms: organizes React code with feature modules, colocation, and small composable components.
- State management patterns: uses React Query for server state and Zustand for client state to avoid misuse of local state for remote data.
- Production-grade UI quality: includes form validation, error boundaries, MSW mocking, performance optimizations, and accessibility guidance.
- Testing approach for confidence: demonstrates Testing Library + Vitest with QueryClientProvider wrappers and hook testing strategies.
Quick Start
Use the react-patterns skill to generate a React (Vite + TypeScript) feature module with React Query hooks, a Zustand store for client state, React Hook Form + Zod validation, MSW handlers for API mocks, and Testing Library tests for key UI behaviors.