scrimba
Frontend Career Path
React basics
Meme generator
Changing state quiz!
Go Pro!Bootcamp

Bootcamp

Study group

Collaborate with peers in your dedicated #study-group channel.

Code reviews

Submit projects for review using the /review command in your #code-reviews channel

To see this lesson you need to be logged in. Joining Scrimba is free and gives you access to 20+ courses.Sign up
AboutCommentsNotes
Changing state quiz!
Expand for more info
quiz.md
run
preview
console
1. You have 2 options for what you can pass in to a
state setter function (e.g. `setCount`). What are they?



2. When would you want to pass the first option (from answer
above) to the state setter function?



3. When would you want to pass the second option (from answer
above) to the state setter function?

Console
/index.html
-2:30