-
-
Save joaquin-viera/d27386a27b16aa3fa1c0699d40420904 to your computer and use it in GitHub Desktop.
Concurrent Mode - index.js
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
import React from 'react'; | |
import ReactDOM from 'react-dom'; | |
import App from './App'; | |
const concurrentMode = false; | |
if (concurrentMode) { | |
ReactDOM.unstable_createRoot(document.getElementById('root')).render(<App />); | |
} else { | |
ReactDOM.render(<App />, document.getElementById('root')); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment