BackboneMixin - automatic binding and unbinding for react classes mirroring

Use in your code Learn more
bit import khan.react-components/components/backbone-mixin

BackboneMixin - automatic binding and unbinding for react classes mirroring backbone models and views.

Example

:
Example:

    const Model = Backbone.Model.extend({ ... });
    const Collection = Backbone.Collection.extend({ ... });

    const Example = React.createClass({
        mixins: [BackboneMixin],
        getBackboneModels: function() {
            return [this.model, this.collection];
        }
    });

List the models and collections that your class uses and it'll be
automatically `forceUpdate`-ed when they change.

This binds *and* unbinds the events.