ReactJS gives us the opportunity to use ES7+ features early enough because of its very nature. By using a compiler like Babel we can even start using experimental ones and master upcoming JavaScript characteristics before they get officially released. This is extremely beneficial and makes us hell better developers since we can track closely language’s evolution. In my opinion, this adaptability is one of the most powerful features of ReactJS.

In order to create a stateful component, we can use an ES6 class by extending React.Component:

ES6 classes give us the opportunity to initialize state in the constructor and make bindings with props. Using a getter method like