Web Development
React.js
Subjective
Sep 28, 2025
Explain React's automatic batching and flushSync API.
Detailed Explanation
Automatic batching groups all state updates for better performance. flushSync forces synchronous updates when needed, bypassing batching for cases requiring immediate DOM updates.
Discussion (0)
No comments yet. Be the first to share your thoughts!
Share Your Thoughts