-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.js
26 lines (23 loc) · 802 Bytes
/
index.js
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
import registerServiceWorker from './registerServiceWorker';
import React from 'react';
import ReactDOM from 'react-dom';
import App from './components/App';
import { BrowserRouter } from 'react-router-dom';
import { IntlProvider } from 'react-intl';
import promise from 'redux-promise';
import reducers from './root_reducer';
//Redux
import { createStore, applyMiddleware } from 'redux';
import { Provider } from 'react-redux';
const createStoreWithMiddleware = applyMiddleware(promise)(createStore);
ReactDOM.render(
<Provider store={createStoreWithMiddleware(reducers)}>
<IntlProvider locale="en">
<BrowserRouter>
<App />
</BrowserRouter>
</IntlProvider>
</Provider>,
document.getElementById('root')
);
registerServiceWorker();