JSFiddle - React, Tailwind, and code Playground

by the_archer

HTML

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script>

JavaScript

(function ($) {
  window.AppView = Backbone.View.extend({
    el: $("body"),
    events: {
      "click #add-friend":  "showPrompt",
    },
    showPrompt: function () {
      var friend_name = prompt("Who is your friend?");
    }
  });
var appview = new AppView;
  })(jQuery);