JSFiddle - React, Tailwind, and code Playground

by savid

HTML

<script src="http://underscorejs.org/underscore.js"></script>
<script src="http://backbonejs.org/backbone.js"></script>
<h1>Test</h1>

JavaScript

TestView = Backbone.View.extend({
    events: {
        'click': 'activate'
    },
    initialize: function(selector) {
        this.el = selector;
    },
    activate: function() {
        alert('success');
    }
});

view = new TestView('h1');