Can't get it working with ES6 classes
eguneys opened this issue · comments
eguneys commented
I've tried react-mixin but it didn't work:
class MyComponent extends React.Component {
}
reactMixin(MyComponent.prototype, Morearty.Mixin);
Pierrick Wauquier commented
Have you tried:
reactMixin.onClass(MyComponent, Morearty.Mixin);
instead of:
reactMixin(MyComponent.prototype, Morearty.Mixin);