Replies: 1 comment
-
Thanks for the example! I will leave it to the discussion section and users can refer to it as an example. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Just wanted to add an implementation example of how to embed custom scripts into populated input components of a form.
It uses useWatch, setValue, useFormContext and FormProvider.
Main takeaway is how to communicate between independent react components using RHF.
I believe you can add it as an example to V7 examples.
Feel free to add any suggestions!
Code: https://codesandbox.io/s/cold-rain-tqoul?file=/src/App.js
Beta Was this translation helpful? Give feedback.
All reactions