Skip to main content

← React

State updates

medium

setCount(count + 1) is called twice in one click handler, starting from 0. What is count after?

Your answer

Answers

Stuck?

Open hints one at a time. The write-up explains a full solution.

Discussion

Ask a question or share a tip. Please don’t post full solutions. Posts appear once a moderator approves them.

No posts yet.