Testing react component that uses react-hook-form
React hook form is one of the most poplar library used to create forms in react components. It drastically reduces the amount of code that one has to write for creating forms and writing validations.
You would find ample amount articles and blogs all over the internet on how to use this library. Their own documentation is also well written and easy to follow and understand. But, this post is about testing the component that uses react hook form.