JSFiddle - React, Tailwind, and code Playground
HTML
<div id='div1'>
<div id='div2'>
test123
</div>
</div>
CSS
#div1 {
width:200px;
}
#div2 {
width:75%;
}
JavaScript
document.write($('#div2').width() + ', ');
$('#div1').css('display' , 'none');
document.write($('#div2').width());