Put in order · JavaScript and React course · Module 3: State and Events
Functional State Update Syntax
Arrange the correct syntax for updating state using the previous value:
Items to put in order
- prev + 1
- setCount(
- prev
- )
- =>
You can check the correct answer by solving this task in the CodeWorlds game.