Skip to content

Commit 9e61292

Browse files
committed
docs(react-dom): avoid linting hydration mismatch example
1 parent e3bce84 commit 9e61292

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

src/content/reference/react-dom/client/hydrateRoot.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -552,10 +552,9 @@ Uncaught Error: Hydration failed because the server rendered HTML didn't match t
552552
553553
#### Example mismatch {/*example-mismatch*/}
554554
555-
```jsx
555+
```text
556556
function App() {
557-
const value = Math.random();
558-
return <div>{value}</div>;
557+
return <div>{Math.random()}</div>;
559558
}
560559
```
561560

0 commit comments

Comments
 (0)