JSFiddle - React, Tailwind, and code Playground

HTML

<a href="" id="test">Test</a>

JavaScript

$("#test").click(function() { alert('hello'); return false; });
                 
$("#test").click(function() { alert('world'); return false; });