JSFiddle - React, Tailwind, and code Playground
HTML
<div id="container"></div>
JavaScript
var obj = document.getElementById("container");
obj.style.setProperty("width", "500px");
obj.style.setProperty("height", "300px");
obj.style.setProperty("background-color", "lightgray");