-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.js
34 lines (29 loc) · 1.07 KB
/
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
27
28
29
30
31
32
33
34
// Dependencies
const React = require('react');
const ReactDOM = require('react-dom');
const ReduxProvider = require('react-redux').Provider;
const Router = require('react-router').Router;
const { syncHistoryWithStore } = require('react-router-redux');
const ReactIntl = require('react-intl');
const ReactGA = require('react-ga');
require('babel-polyfill');
const store = require('./store/');
const routes = require('./routing/routes');
const routerHistory = require('./routing/history');
const logPageView = require('./routing/analytics');
const history = syncHistoryWithStore(routerHistory, store);
ReactIntl.addLocaleData(require('react-intl/locale-data/en'));
ReactIntl.addLocaleData(require('react-intl/locale-data/el'));
ReactIntl.addLocaleData(require('react-intl/locale-data/es'));
ReactIntl.addLocaleData(require('react-intl/locale-data/de'));
ReactGA.initialize(properties.gaCode);
ReactDOM.render(
<ReduxProvider store={store}>
<Router
history={history}
routes={routes()}
onUpdate={logPageView}
/>
</ReduxProvider>,
document.getElementById('app')
);