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:

  1. const
  2. [
  3. count
  4. ,
  5. setCount
  6. ]
  7. =
  8. useState(0)