Skip to content
RED SAGSkills
hard20 pts · first answer countsreactssr

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