Hydration

You might say

The text and buttons are already on screen—why do clicks do nothing at first, and why does the console say Hydration failed?

The step where a frontend framework attaches event listeners and state to server-rendered HTML already displayed in the browser.In frameworks such as Next.js, the server sends readable HTML first and the browser hydrates it once JavaScript loads so clicks and state work. If initial rendering reads live clocks, random values, or browser storage, the server HTML and client output diverge and raise a Hydration mismatch error.
React HydrationHydration Mismatch

You can say this to an AI Agent

Ready to paste into Cursor, Claude Code, or Codex
Structured AI Agent prompt

Refreshing this page triggers a Hydration mismatch error. Find what differs between the initial server render and the first browser render (such as current time, random values, viewport size, or localStorage reads), make the initial render deterministic, and move browser-only reads to run after mount. Reload afterward to verify zero hydration warnings and working interactions.

Want your Agent to translate plain-language UI ideas automatically?Install free VibeHub Skill →
Oil UI Pro. Push AI’s design skills to the limit. Usability, existing projects and stricter review.
Further reading