JSFiddle - React, Tailwind, and code Playground
HTML
<script src="https://code.jquery.com/jquery-1.12.2.min.js"></script>
<button id="click">
Using jquery
</button>
<button onclick="click1()">
Using javascript
</button>
<script>
$("#click").click(function() {
alert("You clicked the button");
});
function click1() {
alert("You clicked the button");
}
</script>