v3.1.0
TypeScript Features
Similar to [email protected]
, you can now specify the type of the objects in your array.
<FieldArray<{ firstName: string, lastName: string }> name="clients">{({fields}) => {
// ...
// fields.push({ firstName: 'Erik', lastName: 'Rasmussen' }) is strongly typed
}}</FieldArray>