What problem does it solve?
This Skill provides reusable patterns and best practices for building Next.js apps with the App Router, covering Server/Client Components, data fetching strategies (SSR/SSG/ISR), caching strategies, middleware, route handlers, server actions, and loading/error states.
Core Features & Use Cases
- Server/Client Component patterns: Demonstrates when to use server components by default and how to progressively opt into client components.
- Data fetching strategies: Examples of SSR, SSG, and ISR with practical code patterns.
- Caching and revalidation: Techniques for cache control, on-demand revalidation, and tag-based invalidation.
- Middleware and route handlers: Setup for authentication gates and REST/Route handlers.
- Use Case: Build an admin dashboard with mixed SSR data and client interactivity using server actions for mutations.
Quick Start
Use the Next.js App Router patterns in a new or existing Next.js project to structure pages, layouts, and actions as demonstrated.