JSFiddle - React, Tailwind, and code Playground

HTML

<div style="background-color : Red; width: 100px;">
    some text
</div>

JavaScript

$('div').height($(document).height());