T
React Hook Form
Created Mar 5, 2019
by
react-hook-form
Language:
TypeScript
Stars:
44.4K
Forks:
2.4K
README
Get started | API | Form Builder | FAQs | Examples
Features
- Built with performance, UX and DX in mind
- Embraces native HTML form validation
- Out of the box integration with UI libraries
- Small size and no dependencies
- Support Yup, Zod, AJV, Superstruct, Joi and others
Install
npm install react-hook-form
Quickstart
import { useForm } from 'react-hook-form';
function App() {
const {
register,
handleSubmit,
formState: { errors },
} = useForm();
return (
console.log(data))}>
{errors.lastName && Last name is required.}
{errors.age && Please enter number for age.}
);
}
Sponsors
Thanks go to these kind and lovely sponsors!
Past sponsors
Backers
Thanks go to all our backers! [Become a backer].
Contributors
Thanks go to these wonderful people! [Become a contributor].
Documentation website supported and backed by Vercel
Last updated: Jan 21, 2026