Files: b817a22329dc2038d6896282542635e15961b37b / app / dev / root.js
660 bytesRaw
1 | const React = require('react') |
2 | const { Provider } = require('react-redux') |
3 | const { ReduxRouter } = require('redux-router') |
4 | |
5 | const routes = require('app/routes') |
6 | |
7 | if (process.env.NODE_ENV === 'development') { |
8 | var DevTools = require('app/components/dev-tools') |
9 | } |
10 | |
11 | class 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 | |
31 | module.exports = Root |
32 |
Built with git-ssb-web