Skip to content

Instantly share code, notes, and snippets.

@joaquin-viera

joaquin-viera/index.js Secret

Last active Sep 24, 2020
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
You can’t perform that action at this time.