git ssb

1+

dinoworm ๐Ÿ› / catstack



Tree: 7d964f2bef52e9913aa6872a034f7e967653274b

Files: 7d964f2bef52e9913aa6872a034f7e967653274b / app / containers / dev-root.js

660 bytesRaw
1const React = require('react')
2const { Provider } = require('react-redux')
3const { ReduxRouter } = require('redux-router')
4
5const routes = require('app/routes')
6
7if (process.env.NODE_ENV === 'development') {
8 var DevTools = require('app/components/dev-tools')
9}
10
11class Root extends React.Component {
12 render() {
13 const { store } = this.props;
14
15 return (
16 <Provider store={store}>
17 <div>
18 <ReduxRouter>
19 { routes }
20 </ReduxRouter>
21 {
22 (process.env.NODE_ENV === 'development') ?
23 <DevTools /> : null
24 }
25 </div>
26 </Provider>
27 )
28 }
29}
30
31module.exports = Root
32

Built with git-ssb-web