Skip to content

Instantly share code, notes, and snippets.

@callmephilip
Created June 8, 2016 15:57
Show Gist options
  • Save callmephilip/4231da9a1df44c41180f92cabaad6380 to your computer and use it in GitHub Desktop.
Save callmephilip/4231da9a1df44c41180f92cabaad6380 to your computer and use it in GitHub Desktop.
// 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