JSFiddle - React, Tailwind, and code Playground

by Thanusha Chandrahasa

JavaScript

$("body").append("<div id=\"newDiv\">New div inserted<br /><button id=\"close\" style=\"font-weight: bold; font-size: 14px; cursor: pointer; text-transform: lowercase; cursor: hand;\" onclick=\"$('#newDiv').hide();\"> No thanks </button></div>");