B4Coder
0%
LessonAbout 6 min

Chapter 10 · Lesson 5 of 5

05. useId: ids that never clash

A label needs its input's id. useId gives each copy of a component its own id, so labels always point at the right box.

Opening the lesson…