Back to KB
Difficulty
Intermediate
Read Time
4 min

How React Works (Part 8)? Server Components & Hydration: The Real Story

By Codcompass Team··4 min read

Current Situation Analysis

Client-side rendering bottlenecks persist despite aggressive client optimizations. Traditional React applications force the browser to download, parse, and execute entire component trees—even those containing purely static markup like navbars, footers, or product descriptions. On mid-range devices with throttled networks, this results in 3–4 second white screens before any meaningful paint occurs.

The industry's historical answer was Server-Side Rendering (SSR). However, conventional SSR introduced a two-trip problem: the server renders HTML for immediate visibility, but the client must still download the full JavaScript bundle, re-execute every component, re-fetch data, and attach event listeners. Server work does not reduce client work; it merely shifts the initial paint earlier while deferring the full computational cost.

Furthermore, traditional hydration created a hydration gap. The page appears visually complete, but interactivity is blocked until React finishes walking the entire server-rendered DOM tree in parallel with the Fiber tree. Sequential hydration means a slow component at the root delays event listener attachment for interactive elements deep in the tree. Even with React 18's selective hydration, architectural boundaries remain unoptimized, and static component overhead continues to ship to every client on every load.

WOW Moment: Key Findings

ApproachTTI (3G/Android)JS Bundle SizeHydration DurationNetwork WaterfallStatic Component Overhead
Traditional SSR + Full Hydration~4.2s380 KB~1200 ms (sequential)12 requests100% (shipped to client)
React 18 Selective Hydration~3.1s380 KB~650 ms (interruptible)12 requests100% (shipped to client)
Server Components (RSC) + Streaming~1.4s145 KB~280

🎉 Mid-Year Sale — Unlock Full Article

Base plan from just $4.99/mo or $49/yr

Sign in to read the full article and unlock all 635+ tutorials.

Sign In / Register — Start Free Trial

7-day free trial · Cancel anytime · 30-day money-back