Understanding Setstate In Componentdidmount To Measure Elements Without Transient Ui State