What is Automatic Batching in REACT 18

2 years ago
10

❗️❗️Only 2 minutes to understand what's new

Hi everyone! In today's video, I am going to give you an overview of what Automatic batching is.
Automatic batching is already available in react, but it just worked in some situations.
The batch joins multiple setStates calls into only one update to improve the performance.
If we want to use the advantage of automatic batching, we need to upgrade React and use the new Root API. If you don't know how to upgrade to React 18, check this video: https://www.youtube.com/watch?v=9uXq0sH_zsc&t=3s

Don't forget to subscribe to my channel to be up to date with everything that is going on with React.

Loading comments...