Hydration turns server-rendered HTML into an interactive application. The browser already has the markup, but it lacks the event handlers defined in the application code. section 1.3.3
The hydration process performs three connected responsibilities:
- Loads the application JavaScript and CSS requested by the HTML document. section 1.3.3
- Matches existing browser HTML elements with their corresponding component virtual DOM nodes. section 1.3.3
- Attaches event handlers so interactions can trigger framework updates in the browser. section 1.3.3
From rendered page to interaction
A server generates component output as HTML and sends it to the user. After the browser loads the application JavaScript, hydration connects that HTML to the component’s virtual DOM and event handlers. A user interaction then triggers an update that patches only the necessary HTML in the browser. section 1.3.3 section 1.4

