Skip to content

SSR, SSG, ISR or CSR: choosing a rendering strategy in 2026

When the HTML should be made and how much JavaScript to ship: what each strategy costs and what Next.js 16.4, Astro 7.4, React Router v8 and TanStack Start do today.

Ramon Gomes 18 min read Level: Intermediate

Also available in: Español, Français, Português

Series Front-end for a news portal Part 2 of 7

Almost every hiring process for a senior React role asks some version of "SSR, SSG or CSR, when do you use each one?". The memorized answer (SSR is good for SEO, CSR is bad) has aged: Next.js mixes static and dynamic per component, Astro hydrates only the islands and TanStack Start turns SSR off route by route.

Here I break the strategies down by what they cost (server, TTFB, LCPCore Web Vitals metric that measures how long the largest visible element on screen, usually an image or heading, takes to appear., JavaScript and SEO), show what each framework does as of November 2026 and explain how I handled it in four of my own projects.

The Right Question: When and Where the HTML Is Made

Every strategy answers two questions: when the HTML is generated, and how much JavaScript ships with it to make the page interactive.

Table with seven strategies and the moment the HTML is made in each one: CSR in the browser, SSG at build time, ISR at build time and again from time to time, SSR on every request, streaming on every request in chunks, Cache Components with a shell from the build and holes filled on request, islands with HTML from the build or the request and JavaScript only in the islands
Seven names, two questions: when the HTML is made and how much JavaScript follows it.

CSR (client-side rendering). The server sends an almost empty HTML file and a JavaScript bundle. The browser downloads it, runs it, fetches the data and only then paints. The server is cheap, but LCP depends on the phone of whoever opens the page. A post on TabNews (in Portuguese) sums up the other side: "an internal dashboard rendered on the server wastes CPU on HTML nobody indexes" (TabNews).

SSG (static site generation). HTML generated at build time and served as a file. CDN-level TTFB and an almost free server. The price is how old the data gets.

ISR (incremental static regeneration). SSG with an expiry date. The page is regenerated in the background after a set time or when you call revalidatePath/revalidateTag. Other frameworks solve the same problem with HTTP caching.

SSR (server-side rendering). HTML built on every request. Fresh, personalized data, but every visit costs CPU and TTFB waits for the slowest query.

Streaming. SSR in chunksSplitting documents into smaller pieces before creating embeddings, so search returns only the relevant part and it fits in the model context.: the server sends the page shell and each slow part arrives later, in the same response, marked by <Suspense>. The mechanism is covered in streaming in React; the effect is a low TTFB even with a slow query.

RSC (React Server Components). Components that run only on the server or at build time and don't send their own code to the browser. Not a synonym for SSR: a Server Component can run at build time.

PPR and Cache Components. In Next.js, a ready-made static shell with dynamic "holes" that arrive via streaming. PPR (Partial Prerendering) became Cache Components in Next 16 (Next.js 16).

Islands and partial hydration. The page is plain HTML and only a few pieces become interactive components, each hydrated on its own, at the moment you choose. Jason Miller described the pattern in 2020: server rendering "is not a bolt-on optimization, it's a fundamental part of how pages are delivered" (Islands Architecture). Astro is the best known example.

What Each Strategy Costs

Strategy Server TTFB LCP JS shipped SEO
CSR static file low high on weak phones the whole app depends on the search engine running JS
SSG almost zero CDN-level good whatever you hydrate full
ISR low, plus background regeneration CDN-level good whatever you hydrate full
SSR CPU on every request sum of the slowest query good if the server is fast whatever you hydrate full
Streaming CPU on every request low good if the LCP element is in the shell whatever you hydrate full
RSC depends on where it runs depends helps less, server code stays there full
Cache Components shell at build, holes on request CDN-level good less full
Islands depends on the page depends on the page good only the islands full

The most misleading column is JavaScript: SSR and SSG speed up the first paint, but if the whole page hydrates, the phone runs the entire app before it responds to a tap. The 2025 Web Almanac measured 632 KB of JavaScript on the median mobile page and 697 KB on desktop (Page Weight, 2025). Alex Russell calculates, for a mid-range Android on 9 Mbps, a budget of 0.3 to 0.62 MiB of JavaScript for the page to be ready in 3 seconds (The Performance Inequality Gap, 2026). The median is already at the ceiling. How this shows up in your score is in Core Web Vitals and the Lighthouse score.

Neighborhood bakery with bread rolls in wicker baskets in the display window, an empty tray beside them, a blurred assistant behind the counter and, in the background, a baker seen from behind pulling bread out of the oven with a peel
Bread in the window is SSG: ready before you arrive. Bread coming out of the oven is SSR: fresh, but someone had to bake it. A window restocked with every batch is ISR.

Next.js 16 (October 21, 2025) made caching opt-in and explicit: "all dynamic code in any page, layout, or APIContract that defines how one program asks another for data or actions: which endpoints to call, what to send and what comes back. On the web, usually HTTP with JSON. route is executed at request time by default" (Next.js 16). The experimental.ppr flag was removed.

In 16.4 (October 6, 2026), the team started recommending Cache Components "as the best choice for every Next.js app"; create-next-app already turns the option on, and it becomes the default in Next 17 (Next.js 16.4). The post describes 'use cache' as "a component-level version of the Cache-Control header":

tsx
// next.config.ts
const nextConfig = { cacheComponents: true };
export default nextConfig;

// app/produto/[slug]/page.tsx
import { Suspense } from 'react';
import { cacheLife } from 'next/cache';

async function Descricao({ slug }: { slug: string }) {
  'use cache';
  cacheLife('hours');
  const produto = await buscarProduto(slug);
  return <article>{produto.descricao}</article>;
}

export default async function Pagina({ params }: { params: Promise<{ slug: string }> }) {
  const { slug } = await params;
  return (
    <>
      <Descricao slug={slug} />
      <Suspense fallback={<p>Checking stock...</p>}>
        <Estoque slug={slug} /> {/* no cache: runs on every request */}
      </Suspense>
    </>
  );
}

The description goes into the cached shell; the stock arrives via streaming. 16.4 also added export const ensureStatic, which fails the build if a dynamic component slips into a route that should be static: a cost guardrail for blogs and marketing pages.

What about ISR? Still supported, with and without Cache Components. The official caveats: it only runs on the Node runtime, it doesn't work with static export, and with multiple instances each one has its own disk cache, so revalidatePath only clears the instance that received the call, unless there's a shared cache handler (ISR guide). Background regeneration also counts as compute on platforms that bill per request.

Astro 7.4: Islands, Server Islands and Static by Default

Astro generates HTML with no JavaScript, and you choose what becomes an island (it can be React) and when it hydrates (client:load, client:idle, client:visible). Astro 7.0 (June 22, 2026) rewrote the compiler in Rust and stabilized route caching (Astro 7); the current minor is 7.4, from October 15, 2026. In January 2026 Cloudflare acquired the company behind Astro, which remains open source (MIT) (announcement).

Server islands (server:defer) are the equivalent of Next's dynamic holes: the page ships with placeholder content and each server island loads separately, with props encrypted in the URL and a response cacheable via Cache-Control. Past 2048 bytes of URL it becomes a POST, which the browser doesn't cache (docs).

Dan Abramov bridged the two worlds: the mental model of islands and that of RSC "are remarkably similar" (RSC for Astro Developers, 2025). The difference is that, with RSC, the output is a React tree that can be fetched again as JSON.

The Rest of the React Ecosystem, Framework by Framework

What about outside Next and Astro? The table below gathers what I checked in the docs and changelogs on November 19, 2026:

Framework (Nov 2026) Strategies Watch out for When to use
Next.js 16.4 CSR (static export), SSR, SSG, ISR, streaming, RSC, Cache Components ISR with per-instance cache; Cache Components become the default in 17 Lots of dynamic, personalized pages; stable RSC today
Astro 7.4 SSG (default), SSR with an adapter, client and server islands, route caching not RSC; server islands need an adapter Blogs, docs, marketing, content portals
React Router v8 (framework mode) SPA, SSR, prerender, streaming RSC still "in progress and unstable" Data apps with loaders and actions, migrating from Remix v2
TanStack Start 1.0 selective SSR per route, SPA mode, prerender, streaming RSC optional; I couldn't find ISR in the docs Teams already using TanStack Query and Router
Plain Vite SPA CSR only no server HTML Logged-in areas, internal dashboards, widgets
Waku (1.0 RC) static (default) or dynamic per page, native RSC still a release candidate Learning or using RSC with a minimal surface
RedwoodSDK 1.7 SSR, streaming, RSC built for Cloudflare Workers Full-stack on Cloudflare
Vike 0.4 SSR, SPA and prerender per page RSC only via an extension Fine-grained per-page control on top of Vite
Expo Router (web) static or server output RSC in beta Same code for native app and web
Gatsby 5.16 SSG in maintenance mode Only to maintain legacy sites

What the table doesn't carry:

  • React Router v8 shipped on June 17, 2026: ESM only, React 19.2.7 minimum, react-router-dom removed (React Router v8). Remix v2 became React Router's framework mode in 2025, and Remix 3, a release candidate since August 31, 2026, was born with no dependency on React, starting from a fork of Preact (Wake up, Remix!; Remix 3 RC).
  • TanStack Start 1.0 went stable on October 13, 2026. The per-route ssr option accepts true, false or 'data-only' (data on the server, component only on the client), and the team stopped using RSC on tanstack.com itself (TanStack Start 1.0; Selective SSR). The official React page still calls it Beta (react.dev).
  • RSC outside Next has a common foundation: @vitejs/plugin-rsc, with 3.5 million weekly downloads. Waku (1.0.0-rc.5 on November 11, 2026), RedwoodSDK and Expo (RSC in beta) show the pattern has left Next, but none with the maturity of the App Router.
  • Gatsby: last release (5.16.1) on February 10, 2026, recent commits are maintenance only.
  • A contrast outside React: Qwik replaces hydrationStep where JavaScript takes over HTML that arrived ready from the server, attaching events and state so the page becomes interactive. with resumability: it resumes in the browser the execution that stopped on the server (Qwik). A good reminder that hydration isn't a law of nature.
Person seen from behind sitting on the living room floor assembling the frame of a wooden bookcase, with boards and a jar of screws on the rug and, next to them, a bookcase already assembled and full of books
CSR is flat-pack furniture: shipping is cheap, but you do the assembly, with whatever tools you have at home. Hydrating is tightening the screws on furniture that arrived already standing.

Downloads Are Not Adoption: What the Numbers Say

For the week of November 12 to 18, 2026, the npm API recorded (npm):

Package Weekly downloads
next 99.3 million
react-router 80.3 million
@tanstack/react-start 14.1 million
astro 12.5 million
@react-router/dev 4.3 million
@vitejs/plugin-rsc 3.5 million
gatsby 298 thousand

The most telling row is React Router's: 80 million for the library and 4.3 million for @react-router/dev, the framework mode package. Almost everyone uses React Router as an SPA router, not as Remix's successor. And downloads include CI and transitive dependencies: they're not a count of live sites.

In State of React 2025 (more than 3,700 responses), Next.js has 80% usage, but only 27% positive sentiment against 17% negative; TanStack Start reached 15% usage, and respondents were lukewarm about Server Components (The Register, 2026; State of React 2025). In State of JS 2025, Next leads in usage but sits 39 points below Astro in satisfaction (State of JS 2025). On where to invest your study time, see is React still worth learning in 2026.

Four of My Projects, Four Answers

None of the four uses Cache Components yet.

This portfolio: Astro with React islands and SSR with HTTP caching. Astro is set to output: 'static' and every live route marks export const prerender = false. The reason is in the project docs: forgetting the flag produces a static page (cheap); with server as the default, forgetting it would mean rendering on every request (expensive). The home page, which shows the latest articles, runs on the server with Cache-Control: public, max-age=60, stale-while-revalidate=600; the proxy in front absorbs traffic spikes. It's ISR built from an HTTP header, with no webhook-triggered rebuild.

The home page had turned into a single React island, hydrated in full: 63 KB of JavaScript. Today the hero, services, contact and footer are plain HTML; the carousels use client:visible. The header got its own directive, client:interacao, registered with addClientDirective:

ts
// src/lib/astro/client-interacao.ts (trimmed: hover handling removed)
import type { ClientDirective } from 'astro';

const SINAIS = ['pointermove', 'pointerdown', 'touchstart', 'keydown', 'focusin', 'scroll'] as const;
const ALVO_DO_REACT = 'button, summary, [role="button"]'; // links navigate without JS

const clientInteracao: ClientDirective = (load, _options, el) => {
  let cliquePendente: HTMLElement | null = null;
  let comecou = false;

  const guardarClique = (evento: Event): void => {
    const alvo = evento.target instanceof Element ? evento.target.closest<HTMLElement>(ALVO_DO_REACT) : null;
    if (alvo && el.contains(alvo)) cliquePendente = alvo;
  };

  const hidratar = async (): Promise<void> => {
    if (comecou) return;
    comecou = true;
    SINAIS.forEach((sinal) => window.removeEventListener(sinal, hidratar, true));
    const hidratador = await load();
    await hidratador();
    document.removeEventListener('click', guardarClique, true);
    // React hydrates inside a transition: replaying before that would trample the mount effects.
    await new Promise((pronto) => requestAnimationFrame(() => setTimeout(pronto)));
    cliquePendente?.click();
  };

  document.addEventListener('click', guardarClique, true);
  SINAIS.forEach((sinal) => window.addEventListener(sinal, hidratar, { capture: true, passive: true }));
  if (window.scrollY > 0) void hidratar(); // opened already scrolled: hydrate right away
};

export default clientInteracao;

It hydrates on the first sign of use and, if a click on a button arrives before React does, it stores the click and replays it afterwards. The full version also re-fires pointerover so the hover menu opens. Why not client:idle? Because on a slow device "idle" comes right after load, and the work is the same. In the commit with this change, local mobile Lighthouse (median of 5 runs) went from 899 ms to 0 ms of TBT, and main thread work from 5.7 s to 1.5 s. But the same commit also removed React from the footer and applied content-visibility: auto, so I can't give the directive all the credit. I didn't measure each change separately.

My personal CRM: RSC only for the shell, data in the browser. It's Next 16.4 behind a login. Server Components draw the layout, menu and skeleton; data comes in the browser via TanStack Query calling a FastAPI API. There are no Server Actions, and access is denied by the API, not by Next. The budget is 180 KB gzipped of JS on the first logged-in load. The backlog records the cost of changing this: rendering a public page on the server would mean giving the web containerIsolated package that bundles an application with its dependencies and runs the same on any machine, sharing the host operating system. Docker is the most common. the API's internal URL.

Ofertume: pure SSG. Products, categories, collections and guides use generateStaticParams with dynamicParams = false, so every public page comes out of the build. The admin panel is force-dynamic and calls revalidatePath in its actions.

The Relatizo site: static export. output: 'export' served by Firebase Hosting, with the template pages generated by generateStaticParams. No Next server to pay for. The LCP gain came from somewhere else: removing backdrop-filter from the cards took mobile LCP from 3.3 s to 2.2 s. The right rendering strategy doesn't save expensive CSS; for the rest of the path to the user, see HTTP caching, CDNs and image optimization.

When to Use Each One: The Decision Tree

Decision tree: does the page need SEO or to show up in shared links; if not, CSR or SPA; if so, is the content the same for everyone; if it is, does it change more than once a day; if it doesn't, SSG; if it does, ISR or HTTP caching with stale-while-revalidate; if the content is personalized, is most of the page the same for everyone; if it is, Cache Components or server islands; if not, SSR with streaming
Start at the top. Most content sites stop at the second level.

Traps I've Seen (or Fallen Into)

Frequently Asked Questions

Do I need SSR if my whole app is behind a login?

Almost never. Without SEO, SSR only speeds up the first paint and charges CPU on every request. An SPA, or a Server Components shell with data fetched in the browser, comes out much cheaper.

Does ISR still exist in Next.js 16?

Yes, with revalidate, revalidatePath and revalidateTag, with or without Cache Components. It doesn't work with static export, and the cache is per instance.

What's the difference between PPR, Cache Components and streaming?

Streaming is the mechanism: HTML in chunks within the same response. PPR was the name for the static shell with dynamic holes; in Next 16 it became the Cache Components model, where 'use cache' marks what gets cached and the rest arrives via streaming.

Is RSC the same as SSR?

No. SSR is generating HTML on every request. A Server Component runs outside the browser, at build time or on request, and doesn't send its code to the client. You can have RSC on a fully static page.

Astro or Next.js for a blog or content portal?

For content with little interaction, Astro ships less JavaScript by default. Next wins with heavy personalization, a logged-in area in the same app, or a team that already knows the App Router well.

What happened to Remix?

Remix v2 became React Router's framework mode. Remix 3, a release candidate since August 2026, is a different project and doesn't depend on React. Remix v2 apps migrate to React Router.

Is TanStack Start production-ready?

1.0 has been stable since October 13, 2026, with selective SSR per route, SPA mode and prerendering. I couldn't find ISR in the docs, and RSC is optional. It makes sense for teams already using TanStack Query.

References

Source: https://ramongomessilva.com.br/blog/react-rendering-strategies · Accessed on December 02, 2026

Share Share on LinkedIn Share on X
Cite this article

Ready-made reference, with today as the access date.

ABNT

Brazilian standard (NBR 6023). Use it in theses and academic papers submitted in Brazil.

GOMES, Ramon. SSR, SSG, ISR or CSR: choosing a rendering strategy in 2026. Ramon Gomes, 19 nov. 2026. Disponível em: https://ramongomessilva.com.br/blog/react-rendering-strategies. Acesso em: 2 dez. 2026.

APA

American Psychological Association style. Common in scientific papers and journals, especially in the social, behavioral and health sciences.

Gomes, R. (2026, November 19). SSR, SSG, ISR or CSR: choosing a rendering strategy in 2026. Ramon Gomes. https://ramongomessilva.com.br/blog/react-rendering-strategies

BibTeX

Format for LaTeX users (Overleaf, for example). Paste it into your .bib file or import it into Zotero or Mendeley.

@online{gomes2026reactrenderingstrategies,
  author = {Gomes, Ramon},
  title = {{SSR, SSG, ISR or CSR: choosing a rendering strategy in 2026}},
  organization = {Ramon Gomes},
  year = {2026},
  month = nov,
  date = {2026-11-19},
  url = {https://ramongomessilva.com.br/blog/react-rendering-strategies},
  urldate = {2026-12-02}
}
Found a mistake?

Wrong fact, broken link, outdated information: tell me and I will fix it.

10 to 2,000 characters. If you can, point to the right source.

Only so I can reply. It never shows on any page of the site.

Written by

Ramon Gomes

Software Engineer

Full stack software engineer. I like taking a messy problem, listening to the people who live with it and shipping something that holds up day to day. These days I split my time between my own products, applied AI and client work.

Available for projects

Need Something Like This Built?

I build websites, systems, apps and AI automations, from design to deploy. Tell me what you need or see what I offer.

Related Articles