JSFiddle - React, Tailwind, and code Playground
HTML
<div id=a>Click me</div>
<script>
$('*').on('click.startup', function (e) {
e.preventDefault();
e.stopPropagation();
e.stopImmediatePropagation();
});
$(document).ready(function () {
// wait 4 seconds after document is ready
setTimeout(function () {
alert('click events enabled again');
$('*').off('click.startup');
}, 4000);
});
</script>
<script>$('#a').click(function(){ alert('you clicked') });</script>