JSFiddle - React, Tailwind, and code Playground

by techiedelight

HTML

<div id="container"></div>

JavaScript

var obj = document.getElementById("container");
obj.setAttribute("style", "width: 500px; height: 300px; background-color: lightgray;");