JSFiddle - React, Tailwind, and code Playground

HTML

<script src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"></script>
<link rel="stylesheet" href="http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css">
<script src="https://rawgithub.com/mziech/jquery-ui/fix-8740/ui/jquery.ui.tooltip.js"></script>

<ol><li>
    Click the button and see how many remove events are register.</li>
    <li>Hover over textbox many times</li>
    <li>Click button and see that remove events not unbound</li>
</ol>

<input id="test" type="text" title="this is a tooltip"  />

<button id="btnCheckCount">Click</button

JavaScript

$(document).ready( function(){

//alert("hello");
    
    
    $("#test").tooltip();
    
    $("#btnCheckCount").on("click", function(){
    var events = $._data($("#test")[0], "events");
    alert("Remove events:" + events.remove.length);
    });
});