What is hydration in React SSR?
Hydration refers to the process where React takes over the static HTML rendered by the
server and attaches event listeners and restores interactivity. This happens once the
JavaScript bundle is loaded on the client.
- SSR: Server renders the HTML.
- Hydration: React "hydrates" the server-rendered HTML to make it interactive.
This process allows the page to load quickly (thanks to the server-rendered HTML) and then
become fully interactive once React takes over.
React Ecosystem & Tools