JSFiddle - React, Tailwind, and code Playground
HTML
<button>
test
</button>
JavaScript
$(function()
{
$(document).on('click', 'button', function(){
alert('hello');
});
$(document).on('click', 'button', function(){
$(this).off();
alert('hello1');
});
});