Last active
September 14, 2016 17:19
-
-
Save browniefed/636548ae9f3542a8769d6e9d647f0c10 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
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