What problem does it solve?
Provides structured frontend best practices and patterns for React and Next.js, covering component architecture, state management, data fetching, performance optimizations, accessibility, and TypeScript conventions to improve maintainability and scalability of web apps.
Core Features & Use Cases
- Component patterns and co-location rules (e.g., ComponentCard with tests and styles) to keep related code together.
- State management guidance: local UI state, derived state, and preferred global patterns with examples using React hooks and lightweight stores.
- Data fetching and rendering strategies: server components by default with client data fetching when live updates are needed; patterns for caching and revalidation.
- Performance and accessibility best practices: memoization, code splitting, image optimization, keyboard and screen-reader considerations.
- Real-world use case: architect and implement a reusable product-card UI with clear separation of concerns and accessibility.
Quick Start
Review a React/Next.js component and apply the patterns for structure, state, data fetching, and accessibility to improve maintainability.