JSFiddle - React, Tailwind, and code Playground
by joshmoto
HTML
<button class="btn" id="double">
Double-click here
</button>
<button class="btn" id="single">
Trigger the handler
</button>
JavaScript
$("#double").dblclick(function() {
alert('double');
});
$("#single").click(function() {
alert('single');
});