Course contentsShow
← React
Lesson 1652 of 2,39640. Server-Side RenderingFree lesson

When to Skip SSR: SPAs and Hydration-Heavy Apps

If hydration cost outweighs SSR benefits, consider client-only rendering for highly interactive, authenticated apps.

When to Skip SSR: SPAs and Hydration-Heavy Apps

What you'll learn: How to recognize when server-side rendering does more harm than good, and when a pure client-side SPA is the better choice.


The Counterintuitive Truth

Not every React app benefits from SSR. If your application requires immediate, heavy interactivity on every page—think complex dashboards, rich text editors, or authenticated user workspaces—the hydration cost can exceed the benefits of faster initial HTML.

When SSR Becomes a Burden

Consider a scenario where:

  • Every component needs interactivity: Your entire page is buttons, charts, drag-and-drop interfaces, and real-time updates
  • Authentication walls everything: Users must log in before seeing anything meaningful (no SEO benefit)
  • Heavy JavaScript is unavoidable: You're shipping large libraries for data visualization, 3D rendering, or complex state management

In these cases, SSR gives you HTML that users can't interact with until JavaScript downloads, parses, and hydrates. You're essentially rendering twice—once on the server, once on the client—just to get to the same fully-interactive state a pure SPA reaches in one pass.

The SPA Alternative

For heavily interactive, authenticated apps (admin panels, SaaS dashboards, creative tools), consider:

  • Skipping renderToPipeableStream entirely
  • Using createRoot (not hydrateRoot) for pure client rendering
  • Showing a fast loading skeleton while your JavaScript bootstraps
  • Focusing optimization efforts on code splitting and lazy loading

Analogy: SSR is like building a house frame before the real construction. For a temporary art installation that needs to be assembled on-site anyway, skip the frame—just bring the materials and build it once.

Key Takeaway: If your app is interactive-first, authenticated, and doesn't benefit from SEO or fast perceived load times, a well-optimized SPA with client-only rendering can be simpler and faster than SSR + hydration.