bryantheastronaut / mernCommentBox

A Tutorial on creating a MERN Stack App from the Facebook Comment React Tutorial
https://medium.com/@bryantheastronaut/react-getting-started-the-mern-stack-tutorial-feat-es6-de1a2886be50
248 stars 92 forks source link

Convert class methods to use arrow functions #21

Closed robertcoopercode closed 6 years ago

robertcoopercode commented 6 years ago

Using arrow functions eliminates the need to bind this for each method since arrow functions do this implicitly. This commit simplifies the code further and will help the reader focus on the other ideas presented in the article.