JSFiddle - React, Tailwind, and code Playground
HTML
<button class="button" mouseover='disable()'>
click
</button>
JavaScript
$(document).ready(function() {
$('button').mouseover(function() {
$('button').attr('disabled', 'disabled');
});
$('button').mouseout(function() {
$('button').removeAttr('disabled');
});
});