JSFiddle - React, Tailwind, and code Playground

HTML

<div id="clickableElement" style="height:100px; width:161px; border:2px solid #ccc;">clickable area</div>

JavaScript

$(document).on('mousedown', function() {
    $('#clickableElement').css('display', 'none');
    $(document).bind('mouseup', function() {
        $('#clickableElement').css('display', 'block');
    });
});