JSFiddle - React, Tailwind, and code Playground
by jfriend00
HTML
<button id="go">Click</button>
<div id="result"></div>
JavaScript
$("#go").click(function() {
// no more clicks until timer expires
$(this).attr("disabled", "disabled");
// do whatever you want on the click here
$("#result").append("Click allowed.<br>");
// set timer to re-enable the button
setTimeout(function() {
$("#go").removeAttr("disabled");
}, 5 * 60 * 1000);
});