-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
27 lines (25 loc) · 944 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
27
import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import { createStore, applyMiddleware } from 'redux';
import ReduxThunk from 'redux-thunk'
import injectTapEventPlugin from 'react-tap-event-plugin';
import NewHome from './components/app2/NewHome';
import News from './components/app2/News';
import reducers from './reducers';
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';
import { Router, Route, hashHistory } from 'react-router'
import { StyleRoot } from 'radium';
injectTapEventPlugin();
ReactDOM.render(
<MuiThemeProvider>
<StyleRoot style={{height: '100%'}}>
<Provider store={createStore(reducers, applyMiddleware(ReduxThunk))}>
<Router history={hashHistory}>
<Route path="/" component={NewHome}/>
<Route path="/news" component={News}/>
</Router>
</Provider>
</StyleRoot>
</MuiThemeProvider>
, document.querySelector('.container'));