JSFiddle - React, Tailwind, and code Playground

by Detect

HTML

<div id="txt" style="display:none">can't touch this</div>

JavaScript

alert($('#txt').width());