Hello, I'm trying to include react.animate to my react component
var React = require('react');
...
var MyComponent = React.createClass({
mixins: [React.Animate],
...
Get warning on component load:
Warning: ReactClass: You're attempting to include a mixin that is either null or not an object. Check the mixins included by the component, as well as any mixins they include themselves. Expected object but got undefined.
And then error when try to make animation:
Uncaught TypeError: this.animate is not a function
If I try to make something like
var React = require('react');
React.Animate = require('react.animate');
...
I get
Uncaught TypeError: Cannot set property 'Animate' of undefined
in react.animate.js at
I have my react js component in a separate js file, run JS app on Electron platform.