JSFiddle - React, Tailwind, and code Playground
HTML
<button type="button">first</button>
<button type="button">second</button>
<button type="button" autofocus id="third">third</button>
JavaScript
setTimeout(function () {
$("#third").prop('disabled', true);
}, 1500);
$("#third").on('disabled', function(e){
alert('my custom code');
});