JSFiddle - React, Tailwind, and code Playground
HTML
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
JavaScript
Backbone.$ = jQuery;
var Model = Backbone.Model.extend({
initialize: function () {
this.on('all', this.monitor);
},
monitor: function (event, model) {
$(document.body).append(event + '<br>');
}
});
var model = new Model({
prop1: 'test'
});
model.set('prop1', 'test1');