JSFiddle - React, Tailwind, and code Playground
HTML
<button id="test">test</button>
JavaScript
$("#test").click(showAlert);
function showAlert()
{ alert('here');
}
<button id="test">test</button>
$("#test").click(showAlert);
function showAlert()
{ alert('here');
}