acme.com
/
Server Component Boundary
Counter Context Provider [Client Component]
Server Component Boundary
Counter Context [Client Component]
Client Context
  • 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.