JSFiddle - React, Tailwind, and code Playground

by Johan Vandeplas

HTML

<a id="link" href="google.be">test</a>

JavaScript

$('#link').on('click',function(e){
    e.preventDefault();
    //am I going to the url?
    alert("I'm not going sir!");
});