JSFiddle - React, Tailwind, and code Playground
HTML
<div id="heat"></div>
CSS
div {
width: 200px;
height: 200px;
background: blue;
}
JavaScript
function heat() {
var heat = document.getElementById("heat")
heat.style.background="red;
}
heat()