React, ES6, Autobinding, and createClass()
TL;DR React removed "autobinding" in ES6 component classes. The code onClick={ this.onClickHandler } could fail inside onClickHandler because it's not bound to anything. Let's see why. ES6 Classes? React has a utility method to create components called React.createClass(). It handles mixins and "autobinds" methods. The newest Javascript language…