What problem does it solve?
This guide provides structured best practices for building Next.js apps using the App Router, clarifying when to use server vs client components, data fetching strategies, and routing conventions to improve performance and maintainability.
Core Features & Use Cases
- Server vs Client Components: Establishes rules for when to mark a component as a client component and how to split server and client boundaries for performance and UX.
- Data Fetching Patterns: Prescribes default static data fetching with ISR, and dynamic no-store options when interactivity requires fresh data.
- Routing Principles: Documents file conventions and route organization techniques, including layout, loading, error, and 404 handling.
- Performance & Metadata: Covers caching, image optimization, and server actions, with guidance on metadata generation for routes.
Quick Start
Set up a Next.js app with App Router, create server components for data fetching, add a client component for interactivity, and follow the recommended file naming conventions.