Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

PS: This can be cleaned up even more with ES6/ES2015 syntax.

See https://babeljs.io/blog/2015/06/07/react-on-es6-plus



Thank you for that link! I am starting in react and there is a blend of ES6 and ES5 in the tutorials (maybe even within the official react tutorials?). This hits the spot in clearing up some confusion for me.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: