JSFiddle - React, Tailwind, and code Playground

HTML

<a href="#" onClick="(function(){
    alert('Hey i am calling');
    return false;
})();return false;">click here</a>