blob: 787b0c179b3de8781c7fa8d82e61f49711e2d1b8 (
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
37
38
39
40
|
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';
import HttpService from './services/http.service';
require("es6-promise").polyfill();
const store = configureStore();
store.runSaga(rootMiddleware);
HttpService.reduxStore = store;
HttpService.httpInterceptor();
// console.log(HttpService.httpInterceptor)
const XRouter = () => {
return (
<Router>
<Route>
<Routes store={store} history={history} />
</Route>
</Router>
);
};
ReactDOM.render(<XRouter />, document.getElementById('root'));
serviceWorker.unregister();
|