From 5e70bf8bb5773a1e8bcec633c2e695ecf57fb90a Mon Sep 17 00:00:00 2001 From: Matt Huntington Date: Wed, 13 Jun 2018 14:41:36 -0400 Subject: [PATCH] Update AJAXRedux.md --- AJAXRedux.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/AJAXRedux.md b/AJAXRedux.md index 5c7baad..6d3b45f 100755 --- a/AJAXRedux.md +++ b/AJAXRedux.md @@ -54,12 +54,12 @@ fetch('https://stupidcomments.herokuapp.com/comments').then((response)=>{ ## Dispatch an ADD action appropriately -In `js/components/commentsform.jsx` alter the `handleSubmit` property to make an AJAX POST request: +In `js/components/commentsform.jsx` alter the `createComment` property to make an AJAX POST request: ```javascript const mapDispatchToProps = function(dispatch){ return { - handleSubmit: function(comment){ + createComment: function(comment){ fetch( 'https://stupidcomments.herokuapp.com/comments', {