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