Created
April 5, 2018 05:35
-
-
Save bmind12/a3e0d373953b4bab42b26fad2f7884c3 to your computer and use it in GitHub Desktop.
Extension of an Action Creator within mapDispatchToProps function
This file contains 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
export default connect(null, (dispatch, ownProps) => ({ | |
addComment: (comment) => dispatch(addComment(comment, ownProps.articleId)) | |
}))(CommentForm) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment