Skip to content
This repository has been archived by the owner on May 22, 2024. It is now read-only.

Can't get it working with ES6 classes #94

Open
eguneys opened this issue Jul 12, 2015 · 1 comment
Open

Can't get it working with ES6 classes #94

eguneys opened this issue Jul 12, 2015 · 1 comment

Comments

@eguneys
Copy link

eguneys commented Jul 12, 2015

I've tried react-mixin but it didn't work:

class MyComponent extends React.Component {
}

reactMixin(MyComponent.prototype, Morearty.Mixin);
@pierrickouw
Copy link

Have you tried:

reactMixin.onClass(MyComponent, Morearty.Mixin);

instead of:

reactMixin(MyComponent.prototype, Morearty.Mixin);

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants