I have a form with multiple components and tried to follow steps in this tutorial, to have my inputs validated: 7 Form Components For React Hook Form I Always Use
I just tried with first one, which is name, but validation won't happen. Instead console shoots a message: form submission canceled because the form is not connected react
Here is my sandbox: Sandbox
The form component should manage the overall validations FormProvider, useFormon submit, while in my test component I tried to manage the single input validations and error messages. It is important however that Form.js submit button keeps the onClick={makeContract}