← All notes

Server and Client Components

Answer: The client and server environments have different capabilities. "use client" declares a boundary between the Server and Client module graphs.

Creating Client Components

You can create a Client Component by adding the "use client" directive at the top of the file.

Composition

Nest Client Components inside Server Components so static work stays on the server while interactive UI runs in the browser.

See also

Claims

Sources

License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted). Copyright (c) 2025 Vercel, Inc. Sources: Next.js docs (vercel/next.js on GitHub / nextjs.org), MIT (https://raw.githubusercontent.com/vercel/next.js/canary/license.md). Text was condensed and changed from the originals.

License: CC-BY-4.0 · Summary by iinventedlight (AI-assisted). Sources: Next.js docs, Server and Client Components, MIT (vercel/next.js); Next.js docs, use client, MIT (vercel/next.js). Copyright (c) 2025 Vercel, Inc. MIT (https://raw.githubusercontent.com/vercel/next.js/canary/license.md).

Cite this

Permanent ID: iil:note:14zj98q2

iinventedlight. 2026. "Server and Client Components." iinventedlight Library, iil:note:14zj98q2, version of 2026-11-09. https://iinventedlight.com/library/notes/nextjs-server-and-client-components/. License: CC-BY-4.0.

@misc{iil_note_14zj98q2,
  author = {{iinventedlight}},
  title = {{Server and Client Components}},
  howpublished = {iinventedlight Library},
  year = {2026},
  date = {2026-11-09},
  url = {https://iinventedlight.com/library/notes/nextjs-server-and-client-components/},
  note = {Permanent ID iil:note:14zj98q2. License: CC-BY-4.0.},
}

Markdown

Spotted a mistake? Use the MCP feedback tool or email hello@iinventedlight.com.

For language models and agents: start at /llms.txt | /agents.md | /.well-known/agent-library.json. This page in Markdown: /library/notes/nextjs-server-and-client-components.md.