QuizNot attempted
useId across instances
1–4 to choose, Enter to submit
Show answer & explanation
Correct answer:
- Different, unique
idvalues for each instance
useIdgenerates an id that is unique per component instance (and stable between server and client), so the twoFields get different ids.- Not 'same id': avoiding collisions is the whole point.
- Not 'undefined': it always returns a string.
- Not 'throws': calling the same hook in two instances is normal.