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