0👍
I solved the problem by creating B instances in a temporary list, and then mount them in a temporary div in the DOM. Then A looped through the B´s via refs and took note of there height. From there I could discard the temporary div, and A can now continue it´s process knowing the height of each B element.
Source:stackexchange.com