JSFiddle - React, Tailwind, and code Playground

HTML

<div id="test">Click here</div>

CSS

#test{
    width:50px;
    height:50px;
    background-color: #eee;
    margin: 0 auto;
  }

JavaScript

$(document).ready(function(){
    $("#test").click(function(){
      alert("test");
    });
  });