Skip to content

Hydration

Hydration connects existing browser HTML with its application logic. Visible content and working interaction require separate checks.

Software Development

Connect existing HTML with application logic

In web development, hydration connects previously generated HTML with its client-side application logic. A framework in the browser can then manage an initially displayed interface. The HTML may come from SSR or SSG, for example.

In a fictional React portal, a product view is already readable while its associated logic is still starting. Only afterwards does the interactive quantity selector work as intended. A visible button alone therefore does not establish readiness.

During hydration, React expects the initial browser output to match the delivered HTML. Different starting data can cause errors. Hydration is neither reloading all business data nor an automatic guarantee of fast interaction. Check when important actions are actually ready.

Sources

Articles on this topic

Software Development with ASES

Custom software, web and mobile apps