JSFiddle - React, Tailwind, and code Playground

HTML

<input type="button" id="aaa" value="button" />

JavaScript

$('#aaa').click(function() {
    var aaa =  $(this);
    aaa.prop('disabled', true);
    setTimeout(function() {
        aaa.prop('disabled', false);
    }, 3000);
});