Skip to content

Instantly share code, notes, and snippets.

@joaquin-viera
Last active September 24, 2020 06:59
Embed
What would you like to do?
Concurrent Mode - index.js
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