Layouts (Client Component)
Nested Layouts
Grouped Layouts
Streaming with Suspense
Root Layouts soon
File Conventions (Client Component)
Components (Client Component)
Client Context
Component Tree
Styling (Client Component)
CSS and CSS-in-JS
Server Component Boundary
Counter Context Provider [Client Component]
Server Component Boundary
Counter Context [Client Component]
Client Context (server component)
  • Pass context between Client Components that cross the Server/Client Component boundary.
  • Click the counter and navigate between pages.
  • Because the context provider is above the nested layouts and pages the number of clicks remains constant even between navigations.
Created by the Next.js team at Vercel. View the code or deploy your own.