JSFiddle - React, Tailwind, and code Playground

HTML

<a class='someClass' href='#'>hello</a><br/>
<a class='clickClass' href='#'>world</a>

CSS

.someClass{
color:red
}

.clickClass{
color:grey
}

JavaScript

$('a.someClass').bind('click.dontClick',function(e){

e.preventDefault();
    alert('nothing happened');

});

$('a.clickClass').bind('click.doClick',function(e){

//your event handling code here
   alert('click event handling code here'); 
    
});