JSFiddle - React, Tailwind, and code Playground

HTML

<input type="button" id="foo" value="foo" />
<input type="button" id="foo2" value="foo2" />

JavaScript

$("foo").click(function(){
 alert("hello");
})
    
$("#foo2").click(function(){
 alert("hello");
})