Skip to content
All lessons

Tech Insights· reactjs.org

Although calling setState on componentDidMount is frowned upon - there is even a eslint rule for that -, sometimes it is nece...

Although calling setState on componentDidMount is frowned upon - there is even a eslint rule for that -, sometimes it is necessary. When working with DOM elements, you probably will need that additional render to achieve what you want #componentdidmount

Shared by

Read on reactjs.org
  • React

Book a call

Lessons like this one
shape how we build.

Tell us what you’re building. In one call, we’ll show you how our team would approach it.

Tell us what you’re building, and we’ll show you how we’d approach it.

Still prefer the good old email? Contact us