Hydration Proof

Search documentation

Find a page or section

hydration-proof v1.0.0

Detect React hydration errors before your users do.

A hydration error checker for Next.js, React Router, Remix and Astro: a real browser compares your server HTML with the hydrated DOM on every route, then tells you what differs, why, and how to fix it. The ESLint plugin catches the same mistakes while you type.

npm install -D hydration-proof eslint-plugin-hydration-proof

Next.js · React Router · Remix · Astro · ViteReact 18 and 190 bytes in your bundleMIT

Detect hydration errors, explain the cause, prevent the next one

One finding, followed from the terminal to the pull request: the server HTML, the hydrated DOM, the likely cause and the ESLint rule that would have caught it.

One command, every route

A hydration mismatch detector that loads each page in Chromium, Firefox or WebKit, not a simulation.

Caught while you type

15 ESLint rules flag Date.now(), Math.random(), window, localStorage and invalid nesting in render.

The exact difference

Server HTML next to the hydrated DOM: text, attributes, classes, styles and repaired markup.

Why it happened

A likely cause with a confidence, proven by reloading with one thing changed, and the fix.

Blocked in CI

GitHub annotations on the line, a job summary, SARIF, JUnit and GitLab reports.