JSFiddle - React, Tailwind, and code Playground
HTML
<input id="t" type="button" value="test" onclick="alert('click pas stoppé')" />
JavaScript
$("#t").click(function(event) {
event.preventDefault();
alert("click stoppé");
});
<input id="t" type="button" value="test" onclick="alert('click pas stoppé')" />
$("#t").click(function(event) {
event.preventDefault();
alert("click stoppé");
});