JSFiddle - React, Tailwind, and code Playground
HTML
<button id=”button”>click me</button>
<p>this text will be show </p>
<p id="test"> this text will be fade out</p>
JavaScript
$(document).ready(function(){
$("button").click(function(){
alert('1');
});
});