MemotivaPerformance Optimization

What is batching in React?

Performance Optimization

Audio flashcard · 0:11

Nortren·

What is batching in React?

0:11

Batching is the process of grouping multiple state updates into a single re-render for better performance. React 18 introduced automatic batching everywhere, including inside promises, timeouts, and native event handlers.