JSFiddle - React, Tailwind, and code Playground
HTML
<a href="" id="myLink">Disabled Link</a>
JavaScript
$('#myLink').click(function(e) {
e.preventDefault();
//do other stuff when a click happens
});
<a href="" id="myLink">Disabled Link</a>
$('#myLink').click(function(e) {
e.preventDefault();
//do other stuff when a click happens
});