JSFiddle - React, Tailwind, and code Playground
HTML
<div id="scroller">
<div id="content"></div>
</div>
CSS
#scroller{
height:800px;
width:800px;
overflow:auto;
box-sizing:border-box;
}
#content{
height:900px;
width:900px;
}
JavaScript
setInterval(function(){
$('#scroller').width($('#scroller').width());
$('#scroller').height($('#scroller').height());
},1000)