JSFiddle - React, Tailwind, and code Playground

HTML

<div id="test" style="width:500px;height:500px;">Test</div>

CSS

div { border: 1px #000 solid; }

JavaScript

var backup = $("#test").attr("style");
alert('check the demo it is big now');
$("#test").height("200px").width("200px");
alert('although the div is small now, here is previous style'+backup);                                 
                                 
                                 a