Hello. Such a question: before writing on the syntax ES6 wrote:

module.exports = React.createClass({ mixins: [ Reflux.listenTo(ListStore, 'onChangeList') ] ... 

And what about the transition to ES6, because if I am not mistaken, then there mixins excluded?

    1 answer 1

    When using classes ES2015 (ES6) impurities can not be used:

    Unfortunately ES6 launched without any mixin support. Therefore, you can use React with ES6 classes.

    As an option, you can still use the syntax React.createClass .

    • What about Reflux? In the same place mixins use? how to replace them? - Caesar
    • Use React.createClass . Nobody forces you to use ES6 syntax :) - Dmitriy Simushev
    • Yes, I have already written so much, now I don’t want to rewrite it back .... - Caesar
    • With Rectiflux, I am not your assistant — I didn’t work with it. - Dmitriy Simushev 2:51 pm
    • maybe you know: I stumbled upon Falcor here, can this be a replacement for Reflux or Flux? maybe you used this technology and it is better than Reflax or Flax? - Caesar