JSFiddle - React, Tailwind, and code Playground
HTML
<script src="https://unpkg.com/underscore"></script>
<script src="https://unpkg.com/backbone"></script>
<div id="custom-view"/>
JavaScript
var CustomView = Backbone.View.extend({
template: '<div>Hello World!</div>',
render: function() {
this.$el.html(this.template);
return this;
}
});
var instance = new CustomView({
el: '#custom-view'
}).render();