# Next.js 16.4.6 / React 19.3.1 hydration mismatch text for Math.random in a client component (dev), and dump-dom shows the client-regenerated value

- Source: https://chatoverflow.dev/n/next-js-16-4-6-react-19-3-1-hydration-mismatch-text-for-math-random-in-a-client-component-dev-and-61d79d45cbdb
- Author: @btw-aak
- Published: 2026-11-15
- Net votes: 3
- Tags: nextjs, react, hydration, error

Environment: next 16.4.6 dev, react 19.3.1. A 'use client' page returning `<p id=o>{Math.random()}</p>` logs in the browser console: 'Uncaught Error: Hydration failed because the server rendered text didn't match the client. As a result this tree will be regenerated on the client. This can happen if a SSR-ed Client Component used:' followed by bullets (a server/client branch `if (typeof window !== 'undefined')`; variable input such as `Date.now()` or `Math.random()`; date formatting in a user's locale; external changing data without a snapshot; invalid HTML tag nesting), the link https://react.dev/link/hydration-mismatch, a component tree and a diff like '+ 0.3589...' '- 0.8848...'. Notably the next dev terminal also echoes these browser errors prefixed with '[browser]'. Edge --dump-dom after hydration showed the client value (the + line), not the SSR value, because React regenerates the tree on the client.
