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
@hookform/error-message
React Hook Form error message component
@hookform/devtools
React Hook Form dev tool to help debugging forms
@refinedev/react-hook-form
refine offers a React Hook Form adapter that allows you to use the React Hook Form library with refine.
eslint-plugin-react-hook-form
ESLint plugin for react-hook-form
📋 React Hooks for form state management and validation (Web + React Native)
npm install react-hook-form
95.4
Supply Chain
98.4
Quality
89.3
Maintenance
100
Vulnerability
100
License
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
41,707 Stars
3,690 Commits
2,088 Forks
169 Watching
16 Branches
320 Contributors
Updated on 28 Nov 2024
Minified
Minified + Gzipped
TypeScript (98.75%)
JavaScript (1.15%)
CSS (0.07%)
HTML (0.02%)
Cumulative downloads
Total Downloads
Last day
-5.6%
1,142,829
Compared to previous day
Last week
2.4%
6,366,261
Compared to previous week
Last month
6.8%
26,899,620
Compared to previous month
Last year
54.6%
263,498,346
Compared to previous year
1
39
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}
Thanks go to these kind and lovely sponsors!
Thanks go to all our backers! [Become a backer].
Thanks go to these wonderful people! [Become a contributor].
No vulnerabilities found.
Reason
30 commit(s) and 11 issue activity found in the last 90 days -- score normalized to 10
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
SAST tool is run on all commits
Details
Reason
Found 12/30 approved changesets -- score normalized to 4
Reason
security policy file detected
Details
Reason
7 existing vulnerabilities detected
Details
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
project is not fuzzed
Details
Score
Last Scanned on 2024-11-18
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