-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.jsx
35 lines (33 loc) · 1.12 KB
/
index.jsx
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
import 'babel-core/polyfill'
import React from 'react'
import FastClick from 'react-fastclick-alt'
import {render} from 'react-dom'
import {Router, Route, Link, hashHistory, IndexRoute} from 'react-router'
import {Provider} from 'react-redux'
import styles from './css/style.css'
import './js/auto_rem.js'
import Home from './containers/Home.jsx'
import List from './containers/List.jsx'
import Test from './containers/test.jsx'
import Detail from './containers/Detail.jsx'
import EvaList from './containers/EvaList.jsx'
import configureStore from './store/configureStore'
const store = configureStore()
export default class App extends React.Component {
render() {
return (
<Provider store={store}>
<Router history={hashHistory}>
<Route name='home' path="/" component={Home}/>
<Route name='list' path="list" component={List}/>
<Route name='home' path="home" component={Home}/>
<Route name='detail' path="detail" component={Detail}/>
<Route name='evalist' path="evalist" component={EvaList}/>
</Router>
</Provider>
);
}
};
render(
<FastClick>
<App/></FastClick>, document.getElementById('root'))