In the second half of this chapter, we will explore how React supports newer versions of ECMAScript. Until now, we have explored the different lifecycle methods in a React component. In this section of the chapter, we will dig into something different: how changes in the new version of ECMAScript have been adopted by React.
ES6 is the current version of the ECMAScript Language Specification Standard. Further details about the changes and the new things incorporated can be found on the Mozilla Development Network site: https://developer.mozilla.org/en-US/docs/Web/JavaScript/New_in_JavaScript/ECMAScript_6_support_in_Mozilla
Complete documentation for ES6 is beyond the scope of this book.
According to the Facebook documentation:
Starting with React 0.13.0 a transpiler allows us to use ES6 classes. JavaScript originally didn't have a built-in class system. The developer team wanted class creation using the idiomatic JavaScript style. Therefore instead of...