From 8139e46c1167393131ec19448fdee5be5fd13565 Mon Sep 17 00:00:00 2001 From: Matt Huntington Date: Tue, 5 Jun 2018 13:49:46 -0400 Subject: [PATCH] Update CommentsRedux.md --- CommentsRedux.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CommentsRedux.md b/CommentsRedux.md index 02d27ce..fad344a 100755 --- a/CommentsRedux.md +++ b/CommentsRedux.md @@ -73,7 +73,7 @@ In the handleSubmit function, dispatch an `ADD` action: ```javascript handleSubmit(event){ event.preventDefault(); - this.props.handleSubmit({ + this.props.createComment({ body: this.refs.body.value, author: this.refs.author.value }); @@ -142,7 +142,7 @@ class Comments extends React.Component { } ``` -`js/components/commentsform.jsx` no long needs to call `this.props.handleSubmit`: +`js/components/commentsform.jsx` no long needs to call `this.props.createComment`: ```javascript handleSubmit(event){