JSFiddle - React, Tailwind, and code Playground
HTML
<a href="no-script.html" id="myLink">link</a>
JavaScript
document.getElementById("myLink").onclick = function() {
// do things, and then
this.innerHTML += ' Clicked!';
return false;
};