Skip to content

Instantly share code, notes, and snippets.

@joaquin-viera
Last active September 24, 2020 06:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joaquin-viera/d27386a27b16aa3fa1c0699d40420904 to your computer and use it in GitHub Desktop.
Save joaquin-viera/d27386a27b16aa3fa1c0699d40420904 to your computer and use it in GitHub Desktop.
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