What problem does it solve?
Modern frontend projects suffer from inconsistent component design, brittle state management, and poor performance or accessibility practices; frontend-patterns provides concise, battle-tested patterns to make React and Next.js codebases maintainable, performant, and accessible.
Core Features & Use Cases
- Component composition & APIs: patterns for composition, compound components, render props, and clear prop contracts to build reusable UI primitives.
- State & data strategies: examples for hooks, context+reducer, Zustand, and client/server data fetching patterns (SWR, React Query, server components).
- Performance & accessibility: memoization, virtualization, code splitting, lazy loading, ARIA focus management, and animation best practices to improve UX and load times.
- Use Case: Refactor a dashboard with slow rendering lists into a responsive, accessible UI using virtualization, memoized components, and predictable state flows.
Quick Start
Use the frontend-patterns skill to refactor a slow React component for improved rendering performance and accessibility.