What problem does it solve?
This Skill provides a comprehensive framework and best practices for developing modern, maintainable, and performant React web applications, ensuring consistency and quality across projects.
Core Features & Use Cases
- Test-Driven Development (TDD): Enforces writing tests before implementation for components and hooks.
- Component & Hook Patterns: Standardizes functional components, logic extraction to hooks, and explicit prop interfaces.
- State Management: Guides on using local state, Zustand for global state, and React Query for server state.
- Routing: Demonstrates setup with React Router and protected routes.
- Styling: Recommends CSS Modules and Tailwind CSS.
- Forms: Integrates React Hook Form with Zod for validation.
- Testing: Covers component testing with React Testing Library and E2E testing with Playwright.
- Performance: Advises on memoization and code splitting.
Quick Start
Implement a new React component by first creating its test file and ensuring tests fail before writing any implementation code.