DEV Community

Discussion on: React - Updating self-dependent state

Collapse
 
wanzulfikri profile image
wanzulfikri

Does that mean, in the second approach, two calls to setState will run sequentially rather than simultaneously? A race condition of sorts.