Answer the question
In order to leave comments, you need to log in
How to use mixins in React.js ES6/7?
Hello.
Such a question: before writing in ES6 syntax, I wrote like this:
module.exports = React.createClass({
mixins: [
Reflux.listenTo(ListStore, 'onChangeList')
]
...
Answer the question
In order to leave comments, you need to log in
Yes, there are no mixins now. Use decorators -> https://github.com/brigand/react-mixin
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question