Next.js › Client Components & Hydration
What is hydration in the context of Next.js and React?
BeginnerAnswer
Hydration is the process where React takes the static HTML that was already sent from the server and attaches interactivity to it in the browser, such as making buttons clickable and inputs responsive, without having to rebuild the entire page from scratch.
// Server sends static HTML first
// React then hydrates it in the browser to add interactivity
// This is handled automatically by Next.jsReal-world example A product page shows fully rendered content immediately from the server, and then a moment later, the add to cart button becomes clickable once React finishes hydrating the page in the browser.