JSFiddle - React, Tailwind, and code Playground

HTML

<input type="button" id="inputButton" value="Button" />

JavaScript

$(function(){
   $("#inputButton").click(buttonClickHanlder);
    
    function buttonClickHanlder(){
        //Do you stuff here
    alert(this.id);
        //Unbind the click event handler, delay 5 mins and then again bind the event handler
        $("#inputButton").unbind('click').delay(5 * 60 * 1000).click(buttonClickHanlder);
    }; 
});