Created
May 5, 2017 18:13
-
-
Save linmic/69f4a8d4b5c156b7182aee5d06684259 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
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