JSFiddle - React, Tailwind, and code Playground
HTML
<div> hello </div>
<div hidden='true'> cruel </div>
<div> world </div>
JavaScript
alert( $('div[hidden]').height() )
<div> hello </div>
<div hidden='true'> cruel </div>
<div> world </div>
alert( $('div[hidden]').height() )