DEV Community 👩‍💻👨‍💻

Discussion on: (Part 1) Build quality forms with React 🚀

alarid profile image
Yohann Legrand Author

It depends when and where you want to retrieve the form data ? In my example, you don't need to. You get access to the data in the submit handler, once the validation process is completed. If you need to listen to changes of a specific value, you can use hook-form's watch, as mentionned in the article. Also, at any time, you can use getValues: (pay attention to the rules)