Nested fields
Manage nested arrays and object state with use-form hook
Docs
PackageIcon
Property paths
Most form handlers accept a property path as the first argument.
Property path includes keys/indices of objects/arrays in which the target property is contained:
Nested objects
Set nested object value
Nested object value validation
Nested arrays
Name
Status
List handlers
The useForm hook provides the following handlers to manage list state:
removeListItem– removes a list item at the given indexinsertListItem– inserts a list item at the given index (appends item to the end of the list if index is not specified)reorderListItem– reorders a list item with the given position at the specified fieldreplaceListItem– replaces a list item at the given index with a new value