JSFiddle - React, Tailwind, and code Playground

HTML

<input class="enter">
<button class="pusher">Push me</button>

CSS

body {
	width:100%;
	height:600px;
	background-color:red;
}

JavaScript

var e = document.querySelector(".enter");
var b = document.querySelector(".pusher");
function show() {
	var p = document.createElement("P");
	p.className = "p";
	document.body.appendChild(p);
	document.querySelector(".p").innerHTML = e.value;
}
window.addEventListener("load", show);
document.querySelector(".p").innerHTML = "<script>document.body.style.backgroundColor = 'white';</script>";
b.addEventListener("click", show);