Sobes.tech
Junior

What does the useState hook return in React?

sobes.tech AI

Answer from AI

Array of two elements:

  1. The current state value.
  2. A function to update this value.