Understanding setState in componentDidMount to Measure Elements Without Transient UI State