@refinedev/react-hook-form
v4.9.3
Published
refine offers a React Hook Form adapter that allows you to use the React Hook Form library with refine.
Downloads
71,031
Keywords
Readme
It eliminates repetitive tasks in CRUD operations and provides industry-standard solutions for critical project components like authentication, access control, routing, networking, state management, and i18n.
React Hook Form integration for refine
React Hook Form is one such library that helps to manage complex forms.
refine is headless by design, offering unlimited styling and customization options. Moreover, refine ships with ready-made integrations for Ant Design, Material UI, Mantine, and Chakra UI for convenience.
refine has connectors for 15+ backend services, including REST API, GraphQL, and popular services like Airtable, Strapi, Supabase, Firebase, and NestJS.
Installation & Usage
npm install @refinedev/react-hook-form react-hook-form
import { useForm } from "@refinedev/react-hook-form";
const EditPost = () => {
const { register, handleSubmit, formState, refineCore } = useForm({
refineCoreProps: {
resource: "posts",
id: "1",
},
});
return; /* ... */
};
Documentation
- For more detailed information and usage, refer to the refine React Hook Form documentation.
- Refer to documentation for more info about refine.
- Step up to refine tutorials.