Click in order · Next.js course · Module 1: Next.js Configuration
useState Destructuring
Arrange the syntax for destructuring the useState hook
Items to click
- useState(0)
- [
- ]
- const
- setCount
- count
- ,
- =
Show the answer
Correct order:
- const
- [
- count
- ,
- setCount
- ]
- =
- useState(0)