Skip to content
RED SAGSkills
easy5 pts · first answer countsreactstate

Logging state right after setting it

count is 0. What does the console.log print when the button is clicked?

function handleClick() {
  setCount(count + 1)
  console.log(count)
}
Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions