git ssb

1+

dinoworm ๐Ÿ› / catstack



Tree: b817a22329dc2038d6896282542635e15961b37b

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