DeepFrontend
Learning Paths
Practice
System Design & DS
Design Studio
Data Structures Curriculum
Real-World Case Studies
Careers
Job Board
Resume Builder
Blog
Sign in
Search
⌘K
Go Pro
Loading compiler resources...
React Quiz Practice
Active Recall Drill Session
← Exit Session
Question 1 of 1
hard
React
Why does invalid HTML nesting (like a <div> inside a <p>) cause a hydration mismatch even with perfectly deterministic data?
A
React refuses to render invalid HTML on the server at all
B
The browser silently corrects invalid nesting while parsing the server's HTML, so the actual DOM structure React finds already differs from what it rendered, before any data comparison even happens
C
This only affects styling, not hydration
D
It doesn't — this is a myth
Check Answer