Skip to content

Instantly share code, notes, and snippets.

@linmic
Created May 5, 2017 18:13
Show Gist options
  • Save linmic/69f4a8d4b5c156b7182aee5d06684259 to your computer and use it in GitHub Desktop.
Save linmic/69f4a8d4b5c156b7182aee5d06684259 to your computer and use it in GitHub Desktop.
import { connect } from 'react-redux';
import { load } from '../redux/modules/search';
import App from './App';
const mapStateToProps = state => ({
users: state.users,
auth: state.auth,
config: state.config,
});
const mapDispatchToProps = dispatch => ({
load: (...args) => dispatch(load(...args)),
});
export default connect(mapStateToProps, mapDispatchToProps)(App);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment