How to prefill Array Fields #1712
Answered
by
bluebill1049
Eric-Juquel
asked this question in
General
-
Hi i'm new on React and react-hook-form and i wonder how can i prefill Array Fields like the one on codesnadbx : https://codesandbox.io/s/6j1760jkjk , for exemple to edit the form thats got current Friends array ? |
Beta Was this translation helpful? Give feedback.
Answered by
bluebill1049
May 27, 2020
Replies: 1 comment 2 replies
-
Take a look this codesandbox: https://codesandbox.io/s/react-hook-form-usefieldarray-vy8fv you can use |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
Eric-Juquel
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Take a look this codesandbox: https://codesandbox.io/s/react-hook-form-usefieldarray-vy8fv
you can use
defaultValuues
fromuseForm
.