This lesson is for subscribers
You've completed the free preview. Subscribe to unlock every lesson in every course.
Why setCount(c => c + 1) works in async contexts—the updater runs with the latest state at commit time.
You've completed the free preview. Subscribe to unlock every lesson in every course.