6 ms·
So are ES6 classes for components coming in 0.13?
by josebalius 12y ago
So are ES6 classes for components coming in 0.13?
- zpao 12y agoMaybe. We're still working on the details about what that will look like. Chances are we'll have some basic support if you're doing a limited set of things. Stay tuned.
- lobster_johnson 12y agoYou 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.