moreartyjs / moreartyjs

Morearty.js - centralized state management for React in pure JavaScript

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can't get it working with ES6 classes

eguneys opened this issue · comments

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

class MyComponent extends React.Component {
}

reactMixin(MyComponent.prototype, Morearty.Mixin);

Have you tried:

reactMixin.onClass(MyComponent, Morearty.Mixin);

instead of:

reactMixin(MyComponent.prototype, Morearty.Mixin);