Describe the bug
React Hook Form won't work with Material UI's TextField
'. Once the form is submit the data is not captured.
To Reproduce
Steps to reproduce the behavior:
Live CodeSandbox example here.
Expected behavior
It should work just like a regular JSX
Desktop (please complete the following information):
Windows 7
Google Chrome
Version: 77.0.3865.90
for material ui is inputRef={register({ required: true })}
feel free to re-open if this does not solve your issue :)
Splendid! Thank you very much for your help and quick reply as always. :)
Most helpful comment
for material ui is
inputRef={register({ required: true })}