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