JSFiddle - React, Tailwind, and code Playground
HTML
<div id="button">
Button
</div>
CSS
#button
{
background-color: blue;
width: 45px;
}
JavaScript
var x = 0;
$('#button').click(function(){
x++;
if (x == 5) {
alert("hello");
}
});