What is the time complexity of "this.setState()" in React?

Hi Mosh! You said that when we update the state, react will compare the old virtual dom and new virtual dom, and based on what is changed react will then update the real dom accordingly. But, doesn’t this process make our application slower? What is the time and space complexity of this process?

Given you had this information - what would you do with it?

1 Like

It would help me to understand things much more clearly.