https://hashnode.com/post/why-is-it-a-bad-idea-to-call-setstate-immediately-after-componentdidmount-in-react-cim5vz8kn01flek53aqa22mby/answer/cim5xt4vs01ggek53hwf20gwa
Denny Trebbin's answer to Why is it a bad idea to call setState() immediately after componentDidMount in React?