0
What is hydration in Next.js and what are common pitfalls?
subina kallyani
medium
0completed
2
Answer
- Hydration is the process of React attaching event listeners and making the server-rendered HTML interactive on the client side.
- Common pitfalls: mismatched HTML between server and client, using browser-only APIs (
window,localStorage) during SSR, or race conditions in async data.
Click to Reveal Answer
Tap anywhere to see the solution
Revealed
Comments0