react-errors-hydration
Installation
SKILL.md
react-errors-hydration
Quick Reference
What Hydration Is
Hydration is the process where React attaches event handlers and component state to server-rendered HTML. React expects the server-rendered DOM to EXACTLY match what the client would render on its first pass. Any difference triggers a hydration mismatch error.
Server renders HTML string ──> Browser displays HTML (fast, non-interactive)
│
React hydrates ────────────────> Attaches event handlers, state, effects
│
Interactive application
ALWAYS ensure server and client render identical output on the first render pass. Hydration does NOT patch differences -- it assumes the DOM is correct and only attaches interactivity.
NEVER treat hydration warnings as harmless. In React 18, mismatches silently produce broken UI. In React 19, React attempts recovery but at a performance cost.
Related skills