JSFiddle - React, Tailwind, and code Playground

by jameswiseman

HTML

<div id="a">
   <div id="b">
       <div id="c">
</div></div></div>

JavaScript

alert(document.getElementById("a").childNodes.length);
alert(document.getElementById("b").childNodes.length);