The React.createMixin
helper was never actually implemented -
the code for it
simply took a mixin as an argument and returned it with no changes:
createMixin: function(mixin) {
// Currently a noop. Will be used to validate and trace mixins.
return mixin;
},
Since mixins are considered harmful and we have no plans to support this API, it will be removed in React v16.0.
If you were using React.createMixin
then you can use the mixin directly. So change the following:
// BAD
const myMixin = React.createMixin(rawMixin);
to this:
// FIXED
const myMixin = rawMixin;