Deprecation warning: See for new link -React Getting Started — The MERN Stack Tutorial!
Bryan Gilbraith
3.8K69

//CommentBox.js
//replace the filler with:
handleCommentSubmit(comment) {
axios.post(this.props.url, comment)
.then(res => {
this.setState({ data: res });
}).
.catch(err => {
console.error(err);
});
}

not trying to be nit picky or critical, this post has been super helpful and awesome, it has seriously helped me. But I think in the part above there is a “..” before catch. My system freaks out, but unless I am missing something there should only be one period.

Like what you read? Give Thomas Chester a round of applause.

From a quick cheer to a standing ovation, clap to show how much you enjoyed this story.