Skip to content

Instantly share code, notes, and snippets.

Created April 27, 2020 22:22
What would you like to do?
import 'bootstrap/dist/css/bootstrap.css';
import React, { Suspense } from 'react';
import ReactDOM from 'react-dom';
import { BrowserRouter } from 'react-router-dom';
import App from './App';
import './i18n';
const baseUrl = document.getElementsByTagName('base')[0].getAttribute('href');
const rootElement = document.getElementById('root');
<Suspense fallback={null}>
<BrowserRouter basename={baseUrl}>
<App />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment