Skip to main content
Frontend
Interviews
.dev
Problems
713. React Automatic Batching Async
Medium
•
...
Select the best answer.
setN
(
(
x
)
=>
x
+
1
)
;
Promise
.
resolve
(
)
.
then
(
(
)
=>
setN
(
(
x
)
=>
x
+
1
)
)
;
In modern React, what is true?
Never batched.
Often batched automatically.
Only class components batch.
Must call unstable_batchedUpdates always.
Submit Answer
Reveal Answer
Select an option and submit your answer.
Next Problem
Auto-advance on correct answer