Let’s keep going with ReactJS. Must say I’m getting addicted :)
Recently I started a small project and I wanted to use ReactJS and ES6 (EcmaScript 2015 6th Edition)
Turned out that creating a component is a little bit different.
Let me show you a commented skeleton for a component in ES6:
This example comes directly from the official ReactJS documentation that I highly recommend.