Created
April 10, 2019 18:49
-
-
Save DarkSector/49b81d74ba954864ba39106c549cf7a3 to your computer and use it in GitHub Desktop.
mapDispatchToProps with Arguments
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 = (dispatch, ownProps) => { | |
return { | |
executeCapability, | |
loadConfig: (name, capabilityName) => dispatch(loadConfig(name, capabilityName)) | |
} | |
} | |
export default connect(mapStateToProps, mapDispatchToProps)(Capability) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment