JSFiddle - React, Tailwind, and code Playground

HTML

<input type = "button" value = "Paint Me" onclick ="paintIt()">

JavaScript

function paintIt(){
    color = prompt("Enter the color you want on the Background???");
    document.body.style.backgroundColor = color;
}