Browse Source

Prefixing `unstable_` (#3226)

Prefixed `unstable_` for the experimental ReactDOM.createRoot().
main
Shihabudheen US 5 years ago
committed by GitHub
parent
commit
cd5b2ad74f
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      content/docs/concurrent-mode-adoption.md

2
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 />);
``` ```

Loading…
Cancel
Save