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
A product page appears instantly from the server, and a moment later its Add to cart button starts working once hydration completes.