Created
June 8, 2016 15:57
-
-
Save callmephilip/4231da9a1df44c41180f92cabaad6380 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// app/setup.js | |
import App from './components/App'; | |
import React, { Component } from 'react'; | |
import { Provider } from 'react-redux'; | |
import configureStore from './store'; | |
const store = configureStore(); | |
function setup() { | |
class Root extends Component { | |
render() { | |
return ( | |
<Provider store={store}> | |
<App /> | |
</Provider> | |
); | |
} | |
} | |
return Root; | |
} | |
module.exports = setup; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment