What is hydration and what problems can occur?
Answer
•Hydration — 'bringing to life' SSR HTML in the browser.
•React compares the markup and attaches handlers.
•Mismatch of data => hydration mismatch.
•Avoid random values during initial render (Date.now).
•Separate server/client components (in Next).
Was this answer helpful?