JSFiddle - React, Tailwind, and code Playground
HTML
<a href="http://www.google.de/">Foobar</a>
JavaScript
$('a').click(function(e) {
// stop/prevent default behavior
e.preventDefault();
// do other stuff...
// e.g. alert('Link is deactivated');
});