import * as React from 'react' ; import * as ReactDOM from 'react-dom' ; import loadable from "@loadable/component" ; const App = loadable ( ( ) => import ( './App' ) ) ; import './index.scss' ; import registerServiceWorker from './registerServiceWorker' ; import { Provider } from 'react-redux' ; import configureStore from './redux/store/store' ; import { createBrowserHistory } from "history" ; import { BrowserRouter } from 'react-router-dom' ; const store = configureStore ( createBrowserHistory ( ) ) ; ReactDOM . render ( < Provider store = { store } > < BrowserRouter > < App /> < /BrowserRouter> < /Provider>, document.getElementById('root') as HTMLElement); registerServiceWorker ( ) ;