Fomik FieldArray example shows one field already at the beginning. Demo Is it possible not to have input fields on the form? Like this: Instead of: I was trying to do it by myself, but typescirpt gives error when I access friends.name on onSubmit.
friends: [ ],
onSubmit={async (values, { setSubmitting }) => { const names = values.friends.map( (friend) => friend.name, ); }}
1.4m articles
1.4m replys
5 comments
56.9k users