-
Notifications
You must be signed in to change notification settings - Fork 46.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove hydrate option from createRoot (#22878)
* remove hydrate: true option * remove missed comment * lint * warning * circumvent flow
- Loading branch information
Showing
12 changed files
with
149 additions
and
251 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
import React from 'react'; | ||
import {createRoot} from 'react-dom'; | ||
import {hydrateRoot} from 'react-dom'; | ||
|
||
import App from './components/App'; | ||
|
||
let root = createRoot(document, {hydrate: true}); | ||
root.render(<App assets={window.assetManifest} />); | ||
let root = hydrateRoot(document, <App assets={window.assetManifest} />); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.