Created
January 20, 2019 02:46
-
-
Save julianburr/40af108a3b75c5a62f0f99bdea8a790e to your computer and use it in GitHub Desktop.
Why ... - Concurrent mode
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
// Instead of this... | |
ReactDOM.render(<App />, document.getElementById('root')); | |
// ...we do this | |
ReactDOM.createRoot(document.getElementById(‘root’)).render(<App />); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment