> I'm not exactly sure where who you see ES6 classes fitting into React.
>
We've explored using:
class MyComponent extends React.Component { };
let MyComponent = React.createClass(class { });
let MyComponent = React.createClass({ method() { super(); } });
Your @@create example convinced me that we're better off using the first
one together with @@create. That will allow us to delay allocation of the
hidden instance.
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss