Skip to content

React, ES6, Autobinding, and createClass() blog.andrewray.me · Originally posted on Pinboard

TL;DR React removed "autobinding" in ES6 component classes. The code onClick={ this.onClickHandler } could fail inside onClickHandler because it's not bound to…