React Server Components
React components that run only on the server, sending their rendered result to the browser without shipping their code.
In more detail
Server components cannot use state, effects or browser event handlers. Components that need them must be client components, marked with the 'use client' directive, which is why interactive design system primitives include it.
Related terms
- 'use client' — A string placed at the top of a file that marks its components as client components, sent to and run in the browser.
- Next.js — A React framework for building web applications that can render pages on the server and supports React Server Components.
- server rendering — Turning React components into an HTML string on a server or in a script, instead of drawing them in a browser.
- Client Component — A component whose code is also sent to the browser so it can use state, effects and event handlers.
- 'use client' — The directive that marks a module as the entry point to client code, so it and its imports are sent to the browser.
- RSC payload — The compact data stream React produces from Server Components, describing the rendered tree, props for Client Components and placeholders.
- server-side rendering — Building a page’s HTML on the server for each request, so the browser can show content before any JavaScript runs.
Taught in
- Component Packaging: Dual ESM/CJS Builds & Package Exports — Design Systems & Component Engineering
- App Router Architecture: Server-First Paradigms — Next.js 15 & Modern App Router Architecture
- Server Components: Async Execution & Constraints — Next.js 15 & Modern App Router Architecture
- Client Components: use client & Hydration Models — Next.js 15 & Modern App Router Architecture
- Component Tree Composition: Interleaving RSC & Client — Next.js 15 & Modern App Router Architecture
- Streaming SSR: Progressive HTML & Chunked Transfers — Next.js 15 & Modern App Router Architecture
- Loading UI: Instant Loading States with loading.tsx — Next.js 15 & Modern App Router Architecture