Skip to content
Discussion options

You must be logged in to vote

If I understood it right, you have a field group of

type FieldGroup = {
  foo: string,
  bar: number
}

type FormData = {
  foo: string,
  bar: number,
  unrelated: {}
}

There's no shortcut for the fields name besides listing them:

<FieldGroup form={form} fields={{
   'foo': 'foo',
   'bar': 'bar'
}}/>

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@mhuggins
Comment options

Answer selected by mhuggins
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants