When exactly is `componentDidMount` fired?
Inside a react component tree, componentDidMount() is fired after all children components have also been mounted. This means, that any component’s componentDidMount() is fired before its parent has been mounted. So if you want to measure DOM position and sizes etc, using componentDidMount() of a child component is an unsafe place/ time to do this. … Read more