Skip to content

FlashcardNot attempted

SSR vs CSR vs hydration

Recall it before you reveal

Compare CSR and SSR, and define hydration.

Space to reveal
Show answer & explanation

CSR: the server sends an empty <div id="root">. Nothing is visible until JS downloads, runs and renders: late first paint, weaker SEO. SSR: the server sends full HTML, so the user sees content immediately; JS loads afterwards. Hydration: React walks the existing server DOM, attaches event handlers and state, and "takes over", without re-creating the DOM. Until it finishes, the page is visible but not interactive.