I’ve got a mixin I’ve defined, in /client/mixins
:
FormMixin = {
// ...
};
But in /client/components/LoginForm/LoginForm.jsx
, when I try to use the mixin, I get an error that it’s undefined:
LoginForm = React.createClass({
displayName: 'LoginForm',
mixins: [FormMixin],
// ...
But I don’t think it’s a scope issue, because if I do a console.log(FormMixin)
in LoginForm
's render method, it dumps it out just fine. What am I missing here?