Server Components visual mental model
Server Components change where component code executes and what crosses the server/client boundary. They are not simply another name for SSR.
It can use server-side data access and produce a serializable React result without shipping its component code as client JavaScript.
Crossing into client code creates a client module boundary. Values crossing that boundary must follow the supported serialization contract.
State, event handlers, Effects, refs, and browser APIs belong in client-executed code.
SSR and Server Components answer different questions
Server rendering concerns producing initial HTML before browser interaction begins.
Server Components concern the server/client component execution model and payload boundary.
'use client' marks a client module boundary
Imports pulled into that client entry become part of the client-side graph unless architecture separates them.
'use server' is about server-callable functions
Marks a client module boundary for code that must execute in the browser.
Marks supported functions/modules as server-callable Server Functions. It is not the marker that makes a component a Server Component.
Server Functions cross a security boundary
Treat arguments as untrusted request input.
Authentication context, authorization, validation, and safe mutation rules still apply.
Do not expose secrets, database internals, or trusted server objects across the boundary.
Choose the execution side deliberately
Keep this mental model
Continue with Server Components and Client Boundaries for the detailed execution, composition, and framework integration model.