JSFiddle - React, Tailwind, and code Playground

HTML

<input type="button" value="hello" />

JavaScript

$(document).ready(function() {      
    $('input[type="button"]').click(function() {
        var input = this;
        input.disabled = true;
        setTimeout(function() {
           input.disabled = false;
        }, 3000);

    })    
})