git ssb

1+

dinoworm ๐Ÿ› / catstack



Tree: 0a19ff71e90207bdc5e6b22d5470c11617f9f7b0

Files: 0a19ff71e90207bdc5e6b22d5470c11617f9f7b0 / app / containers / root.js

634 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 const DevTools = require('app/containers/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 (process.env.NODE_ENV === 'development') ?
22 <DevTools /> : null
23 </div>
24 </Provider>
25 )
26 }
27}
28
29module.exports = Root
30

Built with git-ssb-web