useForm
hello
in the new version of refine , which one should I import for useForm?the original one or refine one
5 Replies
Hey @saji_nael! I'm the kapa.ai support bot. I've searched through the docs to try to answer your question. :wave:
----------------------
You should use the
useForm
hook provided by @pankod/refine-react-hook-form
for the new version of refine.
You can find the API reference for useForm
here (https://refine.dev/docs/packages/documentation/react-hook-form/useForm). It returns all the properties returned by React Hook Form (https://react-hook-form.com) of the useForm
hook, as well as the following return values:
You can also find an example of how to use useForm
here (https://refine.dev/docs/api-reference/core/hooks/useForm/#example).
----------------------Home
React hook for form validation without the hassle
useForm | refine
useForm is a hook that allows to manage forms. It has some action methods that create, edit and clone the form. The hook return value comes to according to the called action and it can run different logic depending on the action.
<@1000087684632547538> kapa.ai is still learning and improving, please let us how it did by reacting below
national-gold•2y ago
refine one to use refine features 🙏
Hey @saji_nael ,
For more information about this topic, you can visit our documentation at https://refine.dev/docs/packages/documentation/react-hook-form/useForm/ ⚡