JSFiddle - React, Tailwind, and code Playground

HTML

<a href="#" onclick="alert('hello')" id="test">Click me!</a>

JavaScript

document.getElementById("test").onclick = function() {
    alert("event registration model hello!");    
}

$("a").unbind("click");