Skip to content

Glossary · Frontend

What is hydration?

Hydration is the step where JavaScript in the browser takes over server-rendered HTML: React (or another framework) attaches event handlers and state to the existing markup, making it interactive without rebuilding the page from scratch. Until hydration finishes, the page is visible but its controls may not respond.

Source: React: hydrateRoot

Why it matters

Hydration lets you combine fast server-rendered HTML with a fully interactive app. But until it finishes, buttons may not respond, and hydrating a large page is a common cause of poor INP.

React Server Components reduce the problem by keeping non-interactive parts on the server, so less JavaScript needs to hydrate.

Example

// in practice

A product page appears instantly from the server, and a moment later its Add to cart button starts working once hydration completes.

Go deeper

Next step

Need this done properly?

Tell us what you are building. A senior engineer replies within one business day with specific, honest next steps.

First reply
Within 1 business day
Typical start
1–2 weeks
Pricing
Fixed price per phase
You own
All code and accounts