Field Arrays
Nested Arrays
A field array inside a field array. Each section has its own list of lessons and its own running duration.
What this shows
A field array inside a field array. Each section row renders its own useFieldArray for its lessons, with the section row as its ancestors. See Nested field arrays.
- Fields in a lesson list every row they're inside, outermost first.
- Initial values and submitted values include the nested lessons.
- The inner array's
defaultValuegives a new section its first lesson.