JSFiddle - React, Tailwind, and code Playground
HTML
<button class='element'>Request!</button>
CSS
button{
background: green;
width: 100px;
height: 40px;
}
JavaScript
$(function(){
$('.element').click(function(e){
e.preventDefault();
$(this).css('background', 'yellow');
});
$('.element').dblclick(function(e){
e.preventDefault();
$(this).css('background', 'red');
});
});