blob: a3b342f2cf0bb7183e452db52fb4873003851340 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
import React from 'react';
import ReactDOM from 'react-dom';
import "bootstrap/dist/css/bootstrap.min.css";
import './index.css';
import App from './App';
import * as serviceWorker from './serviceWorker';
import { history, configureStore } from './core/store';
import rootMiddleware from './middlewares/root.middleware';
import {
BrowserRouter as Router,
Route
} from "react-router-dom";
import Routes from './core/routes';
require("es6-promise").polyfill();
const store = configureStore();
store.runSaga(rootMiddleware);
const XRouter = () => {
return (
<Router>
<Route>
<Routes store={store} history={history} />
</Route>
</Router>
);
};
ReactDOM.render(<XRouter />, document.getElementById('root'));
serviceWorker.unregister();
|