JSFiddle - React, Tailwind, and code Playground

by greenhulk01

HTML

<h1>Title</h1>
<p>Dummy text goes here so they say!</p>

JavaScript

$( document ).ready(function() {
   function debug(msg){
	var log = document.getElementById("debuglog");
	if(!log){
		log = document.createElementById("div");
		log.id = "debuglog";
		log.innerHTML = "<h1>Debug Log</h1>";
		document.body.appendChild(log);
	}
	var pre = document.createElement("pre");
	var text = document.createTextNode(msg);
	pre.appendChild(text);
	log.appendChild(pre);
}
});