CodeZettaInterview Hub

React · Rendering · Mid-Level · Comparison

Automatic batching — what changed in React 18?

Short Interview Answer

Updates inside timeouts/promises batch too, not only React event handlers.

Detailed Explanation

Fewer intermediate renders. Use flushSync sparingly when you must read DOM immediately.

Did you know this answer?