2016-06-29 10:27:04 +00:00
|
|
|
import React, {Component} from 'react'
|
|
|
|
|
|
|
|
import { Provider } from 'react-redux'
|
|
|
|
import DevTools from '../DevTools'
|
2016-08-10 09:39:01 +00:00
|
|
|
import routes from '../routes'
|
|
|
|
import {Router, browserHistory} from 'react-router'
|
2016-06-29 10:27:04 +00:00
|
|
|
|
2017-01-10 18:22:44 +00:00
|
|
|
|
2016-06-29 10:27:04 +00:00
|
|
|
export default class App extends Component {
|
|
|
|
render() {
|
|
|
|
const { store } = this.props
|
|
|
|
return (
|
|
|
|
<Provider store={store}>
|
|
|
|
<div>
|
2016-08-10 09:39:01 +00:00
|
|
|
<Router routes={routes} history={browserHistory} />
|
2016-06-29 10:27:04 +00:00
|
|
|
<DevTools />
|
|
|
|
</div>
|
|
|
|
</Provider>
|
|
|
|
)
|
|
|
|
}
|
|
|
|
}
|