Files: 99bc16e5212f7086422943407911f7c31443ab4c / app / dev / root.js
632 bytesRaw
1 | import React from 'react' |
2 | import { Provider } from 'react-redux' |
3 | import { ReduxRouter } from 'redux-router' |
4 | |
5 | import routes from 'app/routes' |
6 | |
7 | if (process.env.NODE_ENV === 'development') { |
8 | var DevTools = require('app/components/dev-tools') |
9 | } |
10 | |
11 | export default 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 |
Built with git-ssb-web