Skip to content

Commit

Permalink
fix hydrateRoot args order (#2869)
Browse files Browse the repository at this point in the history
  • Loading branch information
mordv authored Nov 26, 2024
1 parent f540ca8 commit 9281ec1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/guides/ssr-and-hydration.md
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ import ReactDOMClient from 'react-dom/client'

import { App } from './app.tsx'

ReactDOMClient.hydrateRoot(<App />, document)
ReactDOMClient.hydrateRoot(document, <App />)
```

```tsx
Expand Down

0 comments on commit 9281ec1

Please sign in to comment.