JSFiddle - React, Tailwind, and code Playground
HTML
<div id="test">Click me: I will work</div>
<div id="test">Click me: I will not :(</div>
JavaScript
$("#test").click(function(){alert("OK")});
<div id="test">Click me: I will work</div>
<div id="test">Click me: I will not :(</div>
$("#test").click(function(){alert("OK")});