Others

Others

32 bookmarks
Custom sorting
React, ES6, Autobinding, and createClass()
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? Re…
·blog.andrewray.me·
React, ES6, Autobinding, and createClass()