Accessibility · Middle · Question 69 of 75

How does useId help in React forms?

Show the answer

Correct answer: It makes unique, SSR-safe ids for htmlFor and ARIA links

Explanation

Reusable components can't hard-code ids, or two instances would clash. Don't use it for list keys.

Further reading

Problem with a question

Accessibility · Middle · question 69

Test yourself

Take the Accessibility · Middle quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz