JSFiddle - React, Tailwind, and code Playground

HTML

<html>
    <body>
        <div id="create">
            Click to create dive
        </div>
    </body>
</html>

CSS

#create {
     width:150px;
     height:25px;
     margin-bottom:5px;
     background:#ccc;
     border:1px solid #222;   
}

.new {
    width:200px;
    height:100px;
    background:#ffccff;
    border:1px solid #333;   
}

JavaScript

document.getElementById("create").addEventListener("click", function() {
    alert("You clicked the DIV element!");
}, true);