Within react, I\'m trying to render a inner div only if its height doesn\'t get greater than a given percentage of a outer divs height.
I came up with the following s