Browse Source
Prefixing `unstable_` (#3226)
Prefixed `unstable_` for the experimental ReactDOM.createRoot().
main
Shihabudheen US
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
content/docs/concurrent-mode-adoption.md
|
@ -71,7 +71,7 @@ import ReactDOM from 'react-dom'; |
|
|
// |
|
|
// |
|
|
// You can opt into Concurrent Mode by writing: |
|
|
// You can opt into Concurrent Mode by writing: |
|
|
|
|
|
|
|
|
ReactDOM.createRoot( |
|
|
ReactDOM.unstable_createRoot( |
|
|
document.getElementById('root') |
|
|
document.getElementById('root') |
|
|
).render(<App />); |
|
|
).render(<App />); |
|
|
``` |
|
|
``` |
|
|