Skip to content

Move to ES6 classes #31

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
prakhar1989 opened this issue Jul 8, 2015 · 2 comments
Open

Move to ES6 classes #31

prakhar1989 opened this issue Jul 8, 2015 · 2 comments
Labels

Comments

@prakhar1989
Copy link
Owner

Move the React components to ES6 classes. Refer - http://babeljs.io/blog/2015/06/07/react-on-es6-plus/

@etosch
Copy link
Contributor

etosch commented Jul 8, 2015

+1 for es6!

  Emma Tosch
  [email protected]

On Wed, Jul 8, 2015, at 03:34 AM, Prakhar Srivastav wrote:

Move the React components to ES6 classes. Refer - http://babeljs.io/blog/2015/06/07/react-on-es6-plus/


Reply to this email directly or view it on GitHub[1].

Links:

  1. Move to ES6 classes #31

@prakhar1989
Copy link
Owner Author

Haha! I've been using a few ES6 features quite extensively in this project such as arrow functions, rest and spread operators, template strings and default arguments. Unfortunately, I had been missing out on the ES6 classes since it required much more changes in code (eg. you need to manually bind all your functions in your React component). However, the post linked above is quite helpful and reading it makes me want to jump on the es6 wagon all the way through! 😀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants