Hydration is the step where a framework attaches interactivity to server-rendered HTML in the browser.
Hydration is the step in which a front end framework attaches interactivity to HTML that was rendered on the server. Many modern sites send the browser a fully formed HTML page so that content appears quickly, but that initial markup is static: it looks right, yet its buttons, menus, and forms do not respond to clicks or typing. Hydration is the process that runs afterward in the browser, taking that already visible HTML and wiring up the JavaScript that makes it come alive, so the page becomes fully interactive.
The mechanics work like this. When a page uses server side rendering, the server produces the finished HTML and sends it to the browser, which displays it almost immediately. In parallel, the browser downloads the framework's JavaScript. Once that code loads, the framework walks the existing HTML, matches it against the component structure it expects, and attaches the event listeners and internal state that drive interactivity, rather than throwing away the server's markup and rebuilding everything from scratch. If all goes well, the reused HTML lines up exactly with what the framework would have produced on its own, so nothing visibly changes, and the page simply gains the ability to respond. This reuse is the whole point: the visitor gets fast initial content from the server and full interactivity a moment later, without the page having to be drawn twice.
The term borrows from hydrate, rooted in the Greek hydor for water, used figuratively to mean adding something back into a dry or inert thing. Here the dry thing is the static server rendered HTML, and what gets added back is interactivity. The metaphor captures the idea neatly: the page arrives as a complete but lifeless shell, and hydration pours the behavior back in.
For a business, hydration is the mechanism that lets a site enjoy the best of two worlds. Server rendered HTML means content shows up fast and is easy for search engines to read, which helps both perceived speed and discoverability. Hydration then delivers the rich, app like interactivity that users expect. Getting this right supports strong loading metrics while still offering dynamic features, which matters for engagement and conversion. Poorly handled hydration, by contrast, can undercut those benefits, producing pages that look ready but ignore clicks for an uncomfortable stretch.
The nuances are significant and much discussed. Hydration has a real cost: shipping and running the JavaScript needed to hydrate a whole page can be heavy, and there can be an awkward window where content is visible but not yet interactive, sometimes called the uncanny valley of a page that looks done but is not. A frequent and frustrating bug is a hydration mismatch, where the HTML the server produced does not exactly match what the client expects, causing errors or flickering. To reduce these costs, techniques have emerged to hydrate less or later. Hydration relates directly to several adjacent concepts. It follows server side rendering and attaches the behavior that state management and the virtual DOM then drive, it works at the level of individual components, and it is the problem that islands architecture tackles by hydrating only small interactive pockets of a page instead of the whole thing.
Hydration lets sites load fast and rank well while still being fully interactive, though excess hydration can hurt speed.