git ssb

1+

dinoworm ๐Ÿ› / catstack



Tree: ec8f9a99f86cc12ccc1b98d421015bf52931db07

Files: ec8f9a99f86cc12ccc1b98d421015bf52931db07 / app / containers / 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