this.setStat() Asynchronous or Synchronous

Hello
I had been asked this question in an interview

this.setState() is it Asynchronous or Synchronous?

Hi,

javascript - Why is setState in reactjs Async instead of Sync? - Stack Overflow.

This short article might also be helpful:

Also take a look at this topic:

1 Like