JSFiddle - React, Tailwind, and code Playground

HTML

<a href="no-js-link.html">Click action</a>

JavaScript

$('a').click(function() { 
    $(this).css('background', 'gray');
        
    return false;
});