JSFiddle - React, Tailwind, and code Playground
JavaScript
var divHeights = [];
var hts = $('#parent').children('div').each(function () {
return divHeights.push(this.clientHeight);
});
console.log(hts)
var divHeights = [];
var hts = $('#parent').children('div').each(function () {
return divHeights.push(this.clientHeight);
});
console.log(hts)