JSFiddle - React, Tailwind, and code Playground

HTML

<input type='checkbox' />

JavaScript

$('input[type="checkbox"]').on('click', function(event) {
    event.preventDefault();
    event.stopPropagation();
    
    return false;
    
    alert('Break');
});