Frontend
1,129 installs
Next.js App Router Patterns
by wshobson/agents
Master Next.js 14+ App Router with Server Components, streaming, parallel routes, and advanced data fetching. Use when building Next.js applications,…
Skill content
Comprehensive patterns for Next.js 14+ App Router, Server Components, and modern full-stack React development. - Covers rendering modes (Server Components, Client Components, static, dynamic, streaming), file conventions, and core architectural patterns with practical TypeScript examples - Includes eight key patterns: Server Components with data fetching, Client Components, Server Actions, parallel routes, intercepting routes for modals, streaming with Suspense, Route Handlers, and metadata/SEO - Details caching strategies including ISR, tag-based invalidation, and on-demand revalidation via Server Actions - Provides best practices and anti-patterns for Server Component adoption, data fetching placement, and progressive enhancement Next.js App Router Patterns Comprehensive patterns for Next.js 14+ App Router architecture, Server Components, and modern full-stack React development. When to Use This Skill - Building new Next.js applications with App Router - Migrating from Pages Router to App Router - Implementing Server Components and streaming - Setting up parallel and intercepting routes - Optimizing data fetching and caching - Building full-stack features with Server Actions Core Concepts 1. Rendering Modes