codedaily.io
Understanding setState in componentDidMount to Measure Elements Without Transient UI State
2
In this lesson we'll explore using `setState` to synchronously update in `componentDidMount`. This allows for us to use `getBoundingClientRect` or other synchronous UI calls and make changes to the UI without a transient UI state. Read full article