JSFiddle - React, Tailwind, and code Playground

HTML

<script src="http://underscorejs.org/underscore-min.js"></script>
<script src="http://backbonejs.org/backbone-min.js"></script>
<div class="container"></div>

JavaScript

var app = {};
app.testView = Backbone.View.extend({
    id: 'list',
    events: {
    	'click #btn': 'btn'
    },
    initialize: function () {
    	this.render();
    },
    render: function () {
        return this.$el.html( _.template( '<button id="btn">Button</button>' ) );
    },
    btn: function () {
    	console.log('click');
    }
});

$('.container').append( new app.testView().el );