Skip to content

Instantly share code, notes, and snippets.

@KennedyIhe

KennedyIhe/index.js Secret

Created Apr 27, 2020
Embed
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');
ReactDOM.render(
<Suspense fallback={null}>
<BrowserRouter basename={baseUrl}>
<App />
</BrowserRouter>,
</Suspense>,
rootElement);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment