react-hook-form / input

📋 Wrapper component for controlled inputs
https://react-hook-form.com/api#Controller
158 stars 14 forks source link

fix #13 setValue, register and unregister should be optional #15

Closed RiccardoCampitelli closed 4 years ago

RiccardoCampitelli commented 4 years ago

useFormHook setValue, register and unregister props are now optional.

I check if they are provided via props or context and if not throw an error.

Please let me know if there is anything i can do better, this is my first OS contribution :)

bluebill1049 commented 4 years ago

aha, thank you! I live by your words. love it.

bluebill1049 commented 4 years ago

your first ever contribution too. So good! thank you for your contribution.