Skip to content
RED SAG Skills
hardStudy question · answer published in React interview questions, so no pointsreactssr

Hydration mismatch with time

A server-rendered React component shows the current time and the console reports a hydration mismatch. What is the cause and a correct fix?

export function LastUpdated() {
  return <span>{new Date().toLocaleTimeString()}</span>
}
Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions