import React from 'react'; export default function Hydration() { return (

Hydration is the process of a client-side JavaScript library (like React) "attaching" itself to a static HTML page that was already rendered by the server or a build tool.

Static HTML (Dry) React Event Listeners Interactive App (Hydrated)

In the Fezcodex architecture, we use{' '} ReactDOM.hydrateRoot. When the browser loads the pre-rendered HTML (from SSG), React checks the content and makes it interactive without throwing away the existing DOM nodes. This provides the fast visual load of a static site with the interactivity of a dynamic app.

); }