JSFiddle - React, Tailwind, and code Playground

by Sukanya Halder

HTML

<!--
Handlers are attached to the currently selected elements in the jQuery object, so those elements must exist at the point the call to .bind() occurs.
-->
<div> ABC </div>
<p></p>

CSS

div{
    width:100px;
    height:200px;
}

JavaScript

$(document).ready(function(){
    var i=0;
    $("div").bind("click",function(){
        i=++i;
        $("p").html("<div>my name is sukanya"+(i)+"</div>");
    });
});