News for hackers. Stuff that matters.
Re:React v0.12 by lobster_johnson on Tuesday October 28, 2014 @10:42PM (#8525219)
You can use ES6 classes today:

    class Button {
      render() {
        return <button>{this.props.label}</button>;
      }
    }

    Button = React.createClass(Button.prototype);
Of course, it would have been nice to be able to skip that last line, and extend/mix in some React base class instead.

There are no comments on this comment yet.