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…

The ReactJS Controller View Pattern

TL;DR Making a top level component that holds all state and passes it to children as props is really nice. Not to be confused with MVC, a "view controller" or "controller view" is a top level component that holds all state and passes it to children as props. For…

Flux For Beginners

TL;DR This is what I wish someone had told me when I struggled learning Flux. It's not straightforward, not well documented, and has many moving parts. This is a follow-up to ReactJS For Beginners. Should I Use Flux? If your application deals with dynamic data then yes, you should…