JSFiddle - React, Tailwind, and code Playground

by dmethvin

JavaScript

$("<div>", {   
   "class": "test", 
   text: "Click me!", 
   click: function(){ 
     alert("test"); 
   } 
 }).appendTo("body");