JSFiddle - React, Tailwind, and code Playground
by Kang Yuan
HTML
<body>
<div style="border:1px solid blue; height:150px;width:150px;" id="test">This is a test.
</div>
<script>
window.onload=function()
{
var test = document.getElementById("test");
test.onclick = function()
{
alert("test");
}
}
</script>
</body>