Created
April 5, 2018 05:26
-
-
Save bmind12/60b8dc7550db0e588cdae4da1c7cf3e4 to your computer and use it in GitHub Desktop.
Action creator with flag
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 function addComment(comment, articleId) { | |
return { | |
type: ADD_COMMENT, | |
payload: { comment, articleId }, | |
generateId: true | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment