fix hydrateRoot args order (#2869)

This commit is contained in:
Alexander Mordvinov 2024-11-27 04:45:35 +07:00 committed by GitHub
parent f540ca8294
commit 9281ec1990
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -148,7 +148,7 @@ import ReactDOMClient from 'react-dom/client'
import { App } from './app.tsx'
ReactDOMClient.hydrateRoot(<App />, document)
ReactDOMClient.hydrateRoot(document, <App />)
```
```tsx