{"_id":"@abihf/react-hook-form","_rev":"1-a53502dc4c4bf4f53472e2af53051251","name":"@abihf/react-hook-form","dist-tags":{"latest":"3.8.0"},"versions":{"3.8.0":{"name":"@abihf/react-hook-form","version":"3.8.0","main":"dist/index.js","module":"dist/index.es.js","types":"dist/index.d.ts","scripts":{"clean":"rimraf dist/*","build":"rollup -c","watch":"tsc --watch","release":"npm version","lint":"eslint ./src --ext .jsx,.ts --ignore-pattern *.test.ts","coverage":"jest --coverage --coverageReporters=text-lcov | coveralls","test":"jest --coverage","testw":"yarn test -- --watchAll"},"keywords":["react","hooks","form","forms","form-validation","validation","typescript","react-hooks"],"repository":{"type":"git","url":"git+https://github.com/bluebill1049/react-hook-form.git"},"homepage":"https://react-hook-form.now.sh","author":{"email":"bluebill1049@hotmail.com"},"license":"MIT","devDependencies":{"@types/enzyme":"^3.9.1","@types/enzyme-adapter-react-16":"^1.0.5","@types/jest":"^24.0.11","@types/react":"^16.8.13","@types/react-test-renderer":"^16.8.1","@typescript-eslint/eslint-plugin":"^1.7.0","@typescript-eslint/parser":"^1.7.0","coveralls":"^3.0.3","enzyme":"^3.9.0","enzyme-adapter-react-16":"^1.12.1","eslint":"^5.16.0","jest":"^24.7.1","npm-run-all":"^4.1.5","react":"^16.8.6","react-dom":"^16.8.6","react-test-renderer":"^16.8.6","rimraf":"^2.6.3","rollup":"^1.9.3","rollup-plugin-typescript2":"^0.20.1","ts-jest":"^24.0.2","typescript":"^3.4.3","uglify-es":"^3.3.9"},"peerDependencies":{"react":"^16.8.0","react-dom":"^16.8.0"},"gitHead":"5a4a5f57e80a29377bb69c2691fea762478d3170","description":"<div align=\"right\">English | <a href=\"https://github.com/bluebill1049/react-hook-form/blob/master/docs/README.zh-CN.md\">简体中文</a></div>","bugs":{"url":"https://github.com/bluebill1049/react-hook-form/issues"},"_id":"@abihf/react-hook-form@3.8.0","_nodeVersion":"12.1.0","_npmVersion":"6.9.0","dist":{"integrity":"sha512-YSqrnIE0J0dcD0wLB9KATd5v5P7TAHFZQl3TMHytaDfk2PiXIt/CF4kBKMVD33QA2LPy8IyF5+g5HvSp7r1leg==","shasum":"551369fecd82fe40a3449cdd968f4a8d0ad8a540","tarball":"https://registry.npmjs.org/@abihf/react-hook-form/-/react-hook-form-3.8.0.tgz","fileCount":71,"unpackedSize":100468,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJc6ZOjCRA9TVsSAnZWagAAaoAP/2sMFEmnFeZYCsSHhYLt\nZB+NIfQU9tBRsb3pEr/cg1cHtCZcRD9mOzcAnnUGkfqfhIgov3g8AzOjj+/8\nyW3BwYMeCuWYKm5eQJZf1hVNVqrLEt03A1qgrxywdvOlEVQYg/0A9hxX4o7J\nEdUHBc9ZBohv6cJMoCF0JcWKTgZHMM6VfnKOI9qLlPdgeSUmPFkiuqlO7ACc\nhB2bo6UNK61BCgoRKA/XSBR6xaHSqvpmorg8IH5ZxpHPxQbdo6XMRneLWccB\ngKf9dK89LZQ6AUasmtyQVf0iDO5psV5Vw+8auc/4T788q5N1o5QXV2ejA+ad\nXwlJoDmwL+WyVk7FakjKlXcwJGer0gOocUmMtFx89IoHDCGhwsy5FKaSq+gZ\nlW7vdpyCY5ldhu1BGG45pMErzPed/iLAMhrZtMx9RO50VP7Dyp68xo71bdai\n5RhbdhgP3biH4CjusLHCKXI/0VdLRLgtXNfxpOnLrmPdURzv3d+BkP5D084T\nNJxs+UlOMXV5FsLRd8Skys1hC/tybIfvYrtGfGTlcCPWEurU1W875/3QDBxi\nX9TCELlQpiKxlBIm+HYP6uq3VefBESsxEZ2jPLTqyncqE3AHuFhFR5+fFLhG\necMyPekfgeGfmXBfyP/etVAhNW8zWTO4JK/miciGPP2kpiJySDC/ItrULuQy\nQol6\r\n=pomU\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGYX1CHW3s9u8tnvDzYHA3Mb6ni+vM3WucYYD9aUnwfPAiEAqCCnekGPl6zGtWVXaL7c6amOS725N+2SemJIHcCPUYk="}]},"maintainers":[{"name":"abihf","email":"abi@hafs.in"}],"_npmUser":{"name":"abihf","email":"abi@hafs.in"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-hook-form_3.8.0_1558811554492_0.14779956378158365"},"_hasShrinkwrap":false}},"time":{"created":"2019-05-25T19:12:34.462Z","3.8.0":"2019-05-25T19:12:34.617Z","modified":"2022-04-04T10:59:31.928Z"},"maintainers":[{"name":"abihf","email":"abi@hafs.in"}],"description":"<div align=\"right\">English | <a href=\"https://github.com/bluebill1049/react-hook-form/blob/master/docs/README.zh-CN.md\">简体中文</a></div>","homepage":"https://react-hook-form.now.sh","keywords":["react","hooks","form","forms","form-validation","validation","typescript","react-hooks"],"repository":{"type":"git","url":"git+https://github.com/bluebill1049/react-hook-form.git"},"author":{"email":"bluebill1049@hotmail.com"},"bugs":{"url":"https://github.com/bluebill1049/react-hook-form/issues"},"license":"MIT","readme":"<div align=\"right\">English | <a href=\"https://github.com/bluebill1049/react-hook-form/blob/master/docs/README.zh-CN.md\">简体中文</a></div>\n\n<div align=\"center\"><a href=\"https://react-hook-form.now.sh/\" title=\"React Hook Form - Simple React forms validation\"><img src=\"https://raw.githubusercontent.com/bluebill1049/react-hook-form/master/website/logo.png\" alt=\"React Hook Form Logo - React hook form validation\" width=\"350px\" /></a></div>\n\n> React hook form validation without the hassle \n\n[![Tweet](https://img.shields.io/twitter/url/http/shields.io.svg?style=social)](https://twitter.com/intent/tweet?text=React+Hook-Form&url=https://github.com/bluebill1049/react-hook-form)&nbsp;\n[![CircleCI](https://circleci.com/gh/bluebill1049/react-hook-form.svg?style=svg)](https://circleci.com/gh/bluebill1049/react-hook-form) \n[![Coverage Status](https://coveralls.io/repos/github/bluebill1049/react-hook-form/badge.svg?branch=master)](https://coveralls.io/github/bluebill1049/react-hook-form?branch=master) \n[![npm downloads](https://img.shields.io/npm/dm/react-hook-form.svg?style=flat-square)](https://www.npmjs.com/package/react-hook-form)\n[![npm](https://img.shields.io/npm/dt/react-hook-form.svg?style=flat-square)](https://www.npmjs.com/package/react-hook-form)\n[![npm](https://badgen.net/bundlephobia/minzip/react-hook-form)](https://badgen.net/bundlephobia/minzip/react-hook-form)\n\n- Super easy to integrate and create forms\n- Built with performance and developer experience in mind\n- Follows HTML standard for validation\n- Tiny size without any dependency\n- uncontrolled form validation\n- Build forms quickly with the [form builder](https://react-hook-form.now.sh/builder)\n\n## Install\n\n    $ npm install react-hook-form\n\n## [Docs](https://react-hook-form.now.sh/api)\n\n- [Motivation](https://medium.com/@bruce1049/form-validation-with-hook-in-3kb-c5414edf7d64)\n- [Get started](https://react-hook-form.now.sh/api)\n- [API](https://react-hook-form.now.sh/api)\n- [Examples](https://github.com/bluebill1049/react-hook-form/tree/master/examples)\n- [Demo](https://react-hook-form.now.sh)\n- [Form Builder](https://react-hook-form.now.sh/builder)\n- [FAQs](https://react-hook-form.now.sh/faq)\n\n## Quickstart\n\n```jsx\nimport React from 'react'\nimport useForm from 'react-hook-form'\n\nfunction App() {\n  const { register, handleSubmit, errors } = useForm() // initialise the hook\n  const onSubmit = (data) => { console.log(data) } // callback when validation pass\n    \n  return (\n    <form onSubmit={handleSubmit(onSubmit)}>\n      <input name=\"firstname\" ref={register} /> {/* register an input */}\n      \n      <input name=\"lastname\" ref={register({ required: true })} /> {/* apply required validation */}\n      {errors.lastname && 'Last name is required.'} {/* error message */}\n      \n      <input name=\"age\" ref={register({ pattern: /\\d+/ })} /> {/* apply pattern validation */}\n      {errors.age && 'Please enter number for age.'} {/* error message */}\n      \n      <input type=\"submit\" />\n    </form>\n  )\n}\n```\n\n## Contributors \nThanks goes to these wonderful people:\n\n<p float=\"left\">\n    <a href=\"https://github.com/AyumiKai\"><img src=\"https://avatars3.githubusercontent.com/u/14857042?s=60&v=4\" width=\"50\" height=\"50\" /></a>\n    <a href=\"https://github.com/garthmcrae\"><img src=\"https://avatars0.githubusercontent.com/u/1332741?s=64&v=4\" width=\"50\" height=\"50\" /></a>\n    <a href=\"https://github.com/erikras\"><img src=\"https://avatars3.githubusercontent.com/u/4396759?s=60&v=4\" width=\"50\" height=\"50\" /></a>\n</p>\n","readmeFilename":"README.md"}