JSFiddle - React, Tailwind, and code Playground
HTML
<a target="_black" href="http://google.it" class="notprevent">click me</a><br />
<a target="_black" href="http://google.it" class="prevent">click me (preventDefault)</a>
<span></span>
JavaScript
$(".notprevent").click(function(){
$("span").text("Not Prevented loading new page...");
});
$(".prevent").click(function(e){
e.preventDefault();
$("span").text("Prevented and block the loading of new page...");
});