git ssb

1+

dinoworm ๐Ÿ› / catstack



Tree: 99bc16e5212f7086422943407911f7c31443ab4c

Files: 99bc16e5212f7086422943407911f7c31443ab4c / app / dev / root.js

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