JSFiddle - React, Tailwind, and code Playground

HTML

<div id="content">
  <p>The real me lives on the internet!</p>
</div>
<p><code>#content</code>'s height is: <span></span>px.</p>

CSS

body { margin: 0; }
p { font-family: arial; font-size: 13px; margin: 13px 0; }

JavaScript

var $x = $('#content').find("p").outerHeight(true);
$("span").text($x);