JSFiddle - React, Tailwind, and code Playground
HTML
<div id="first">
<div>bla</div>
</div>
JavaScript
alert(document.getElementById('first').childNodes.length);
<div id="first">
<div>bla</div>
</div>
alert(document.getElementById('first').childNodes.length);