DEV Community

Discussion on: How not to update states in React!!

 
nehal_mahida profile image
Nehal Mahida

You are right. My article is all about when you need the previous value of the state then and then you need to use the callback function in setState otherwise it's fine.