4 ms·
It's not limited to ES6, but it's not needed with the ES5 way of declaring React components, as mixins are supported there.
by coldtea 11y ago
It's not limited to ES6, but it's not needed with the ES5 way of declaring React components, as mixins are supported there.
- oinksoft 11y agoActually you don't need to use React.createClass to use mixins, there is https://www.npmjs.com/package/react-mixin https://www.npmjs.com/package/react-mixin which implements them via decorators. Either I wouldn't consider inheritance and mixins interchangeable.