JSFiddle - React, Tailwind, and code Playground

HTML

<a id="test" class="disabled" href="http://www.google.com">Some Link</a>

CSS

#test.disabled {
    color: gray;
}

JavaScript

$(document).on('click', '#test', function(e){
    e.preventDefault();
    alert("No Page Change");
});