-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.tsx
26 lines (23 loc) · 832 Bytes
/
index.tsx
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 getMuiTheme from 'material-ui/styles/getMuiTheme';
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';
import * as React from 'react';
import {render} from 'react-dom';
import {Provider} from 'react-redux';
import {hashHistory, Router} from 'react-router';
import {syncHistoryWithStore} from 'react-router-redux';
import * as injectTapEventPlugin from 'react-tap-event-plugin';
import {routes} from './routes';
import {configureStore} from './store/configureStore';
injectTapEventPlugin();
const store = configureStore.configureStore();
const history = syncHistoryWithStore(hashHistory, store);
render(
<MuiThemeProvider>
<Provider store={store}>
<div>
<Router history={history} routes={routes}/>
</div>
</Provider>
</MuiThemeProvider>,
document.getElementById('root')
);