JSFiddle - React, Tailwind, and code Playground
HTML
<div class="toadd"></div>
<button type="button" id="two" >Click Me!</button>
CSS
#two{
width: 70px;
height: 30px;
}
.toadd{
background: red;
width: 150px;
height: 100px;
position: relative;
}
JavaScript
$(document).ready(function(){
$('#two').click(function(){
$('.toadd').width('250').height('200');
}
);
});