JSFiddle - React, Tailwind, and code Playground

HTML

<div id="result">
    Result: 
</div>

CSS

#result
{
    border:1px solid #000;
}

JavaScript

try {
    $(document).innerWidth();
}
catch (e) {
    $("#result").html(e.toString());
}