What problem does it solve?
This Skill provides a comprehensive guide to Next.js App Router principles, helping developers understand server components, data fetching patterns, and routing principles to build efficient and scalable Next.js applications.
Core Features & Use Cases
- Server vs Client Components: Offers a decision tree to choose the right component type based on the application's needs.
- Data Fetching Patterns: Explains default, revalidate, and no-store patterns with examples.
- Routing Principles: Details file conventions, route organization, and best practices for API routes.
- Performance Principles: Discusses image optimization, bundle optimization, and metadata management.
- Caching Strategy: Outlines cache layers and revalidation methods for efficient data handling.
- Server Actions: Provides guidelines for using server actions in form submissions and data mutations.
- Anti-Patterns: Identifies common mistakes and best practices for project structure.
Quick Start
Learn how to implement Next.js best practices by following the guidelines in this skill unit.