Skip to content

Instantly share code, notes, and snippets.

@julianburr
Created January 20, 2019 02:46
Show Gist options
  • Save julianburr/40af108a3b75c5a62f0f99bdea8a790e to your computer and use it in GitHub Desktop.
Save julianburr/40af108a3b75c5a62f0f99bdea8a790e to your computer and use it in GitHub Desktop.
Why ... - Concurrent mode
// 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