Skip to content

Instantly share code, notes, and snippets.

@browniefed
Last active September 14, 2016 17:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save browniefed/636548ae9f3542a8769d6e9d647f0c10 to your computer and use it in GitHub Desktop.
Save browniefed/636548ae9f3542a8769d6e9d647f0c10 to your computer and use it in GitHub Desktop.
const mapDispatchToProps = {
startup: Something.startup,
slower: Something.slower
}
const mergeProps = (stateProps, dispatchProps, ownProps) {
return {
...ownProps,
...stateProps,
...dispatchProps,
slower: dispatchProps.slower(20)
}
connect(mapStateToProps, mapDispatchToProps, mergeProps)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment