Rendering strategy comparison
What you need to know
Rendering strategy is the choice of when UI is prepared and which work runs on the server or in the browser. Static generation (SSG) prepares reusable output ahead of requests, request-time rendering (often called SSR) prepares output for a request, and client-side rendering (CSR) performs browser-side UI work. Incremental static regeneration (ISR) refreshes eligible generated output. These terms describe different axes from React Server Components.
By the end, you can: separate build-time and request-time work; choose a rendering strategy.
A build-friendly public help page
export default function Help() { return <main><h1>River Books help</h1><p>Orders ship on weekdays.</p></main>;}Expected behavior (not framework-tested): With Cache Components disabled, no request APIs and no dynamic ancestor, this is a candidate for static prerendering. It can be served without running the page for every visitor.
How it works
Choose based on data sensitivity and how stale content may be. A public help page can be prerendered; a public catalog can use a documented revalidation policy; a private dashboard needs authorization and request-dependent work. A user interface can contain interactive Client Components even when its initial HTML was prerendered. RSC describes the component model and the server-to-client representation, not an exclusive alternative to SSG or SSR. Streaming changes delivery timing rather than making data automatically fresh. Static export produces deployable files and cannot execute arbitrary request-time server code on a file host.
Request-time rendering for a live timestamp
import { connection } from "next/server";export default async function Clock() { await connection(); return <main><h1>Request clock</h1><time>{new Date().toISOString()}</time></main>;}Expected behavior (not framework-tested): The timestamp is evaluated after a request arrives. Its actual value is intentionally nondeterministic; test format and timing, not a literal date.
Common mistake
Do not equate server execution with a database read on every request. A dynamically rendered route can still reuse intentionally cached public data. A static page can have browser interaction. Choose rendering and data freshness separately.
Practice and verification
Classify a public shipping policy, daily catalog and private purchase history by allowed staleness and data access. For each, describe where the first HTML comes from, whether a browser needs JavaScript, and which cached values are safe.
Scope: App Router, proposed Next.js 16.x, Cache Components disabled for these labs. Snippets assume a reviewed TypeScript app and are static examples; framework behavior has not been executed. Exact supported patch and dependency set must be verified before running.
Further reading: Components · Connection · Static Export · Isr · Cache Migration