Gathering detailed insights and metrics for react-hook-form
Gathering detailed insights and metrics for react-hook-form
Gathering detailed insights and metrics for react-hook-form
Gathering detailed insights and metrics for react-hook-form
react-hook-form-mui
<div align="center"> <a href="https://react-hook-form-material-ui.vercel.app/" rel="noopener" target="_blank"> <img src="./rhf-mui.png" alt="Material-UI and react-hook-form combined" /> </a> </div>
@graphcommerce/react-hook-form
The Form component is an extension of the (React Hook Form)(https://react-hook-form.com/) package which adds new hooks.
@hookform/resolvers
React Hook Form validation resolvers: Yup, Joi, Superstruct, Zod, Vest, Class Validator, io-ts, Nope, computed-types, TypeBox, arktype, Typanion, Effect-TS and VineJS
react-hook-form-context
React Hook Form Context
📋 React Hooks for form state management and validation (Web + React Native)
npm install react-hook-form
Typescript
Module System
Min. Node Version
Node Version
NPM Version
98
Supply Chain
99.2
Quality
94.4
Maintenance
100
Vulnerability
100
License
TypeScript (98.78%)
JavaScript (1.13%)
CSS (0.07%)
HTML (0.02%)
Total Downloads
808,351,538
Last Day
669,592
Last Week
10,977,116
Last Month
48,125,160
Last Year
359,728,866
MIT License
43,226 Stars
3,775 Commits
2,195 Forks
174 Watchers
18 Branches
334 Contributors
Updated on Jun 02, 2025
Minified
Minified + Gzipped
Latest Version
7.57.0
Package Id
react-hook-form@7.57.0
Unpacked Size
1.08 MB
Size
251.06 kB
File Count
235
NPM Version
9.6.4
Node Version
20.0.0
Published on
Jun 01, 2025
Cumulative downloads
Total Downloads
Last Day
-19.1%
669,592
Compared to previous day
Last Week
-9.8%
10,977,116
Compared to previous week
Last Month
-2.8%
48,125,160
Compared to previous month
Last Year
70%
359,728,866
Compared to previous year
1
41
Get started | API | Form Builder | FAQs | Examples
npm install react-hook-form
1import { useForm } from 'react-hook-form'; 2 3function App() { 4 const { 5 register, 6 handleSubmit, 7 formState: { errors }, 8 } = useForm(); 9 10 return ( 11 <form onSubmit={handleSubmit((data) => console.log(data))}> 12 <input {...register('firstName')} /> 13 <input {...register('lastName', { required: true })} /> 14 {errors.lastName && <p>Last name is required.</p>} 15 <input {...register('age', { pattern: /\d+/ })} /> 16 {errors.age && <p>Please enter number for age.</p>} 17 <input type="submit" /> 18 </form> 19 ); 20}
We’re incredibly grateful to these kind and generous sponsors for their support!
Thank you to our previous sponsors for your generous support!
Thanks go to all our backers! [Become a backer].
Thanks go to these wonderful people! [Become a contributor].
Documentation website supported and backed by Vercel
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
30 commit(s) and 11 issue activity found in the last 90 days -- score normalized to 10
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
SAST tool detected but not run on all commits
Details
Reason
security policy file detected
Details
Reason
Found 9/30 approved changesets -- score normalized to 3
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
project is not fuzzed
Details
Reason
11 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-05-26
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More