JSFiddle - React, Tailwind, and code Playground

HTML

<div id="fuu"></div>

CSS

#fuu {
    width:99px;
    height:99px;
    display:none;
}

JavaScript

var o = $( '#fuu' );

alert( 'width = ' + o.width() );
 alert( 'height = ' + o.height() );