React Developer — Medium
Key points
- React 18 automatically batches all state updates, improving performance.
- Earlier versions of React only batched updates within React event handlers.
- Batching in React 18 includes updates in timeouts, promises, and native event handlers.
- This change in batching behavior enhances the efficiency of state updates in React 18.
Ready to go further?
Related questions
