Interview practice question
Hydration mismatch errors
Frontend Engineering · React · Intermediate
Your server-rendered React app shows hydration mismatch warnings. What causes them, and how do you fix them?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- Server HTML differs from first client render.
- Causes: dates, random values, window checks, locale.
- Render consistent output; move client-only logic to effects.
- suppressHydrationWarning for unavoidable cases.
- Invalid HTML nesting.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.