React 105 ⚛️ Automatic Batching Mechanics
Batching is the mechanism by which React groups multiple state updates into a single re-render. Before React 18, batching was limited to updates inside React event handlers. An update inside a setTimeout, a promise callback, or a native event listener triggered a separate render for each update. React 18 extended batching to all update sources,…