You are right, but as I said, partly.
"Currently (React 16 and earlier), only updates inside React event handlers are batched by default” , according to Dan Abramov.
And
"React may batch multiple setState() calls into a single update for performance”, according to React’s documentation
So it is possible, that it is not batched.
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
You are right, but as I said, partly.
"Currently (React 16 and earlier), only updates inside React event handlers are batched by default” , according to Dan Abramov.
And
"React may batch multiple setState() calls into a single update for performance”, according to React’s documentation
So it is possible, that it is not batched.