React Hook Form Logo - React hook custom hook for form validation
React Hook Form video - React custom hook for form validation
[![npm downloads](https://img.shields.io/npm/dm/react-hook-form.svg?style=for-the-badge)](https://www.npmjs.com/package/react-hook-form) [![npm](https://img.shields.io/npm/dt/react-hook-form.svg?style=for-the-badge)](https://www.npmjs.com/package/react-hook-form) [![npm](https://img.shields.io/npm/l/react-hook-form?style=for-the-badge)](https://github.com/react-hook-form/react-hook-form/blob/master/LICENSE) [![Discord](https://img.shields.io/discord/754891658327359538.svg?style=for-the-badge&label=&logo=discord&logoColor=ffffff&color=7389D8&labelColor=6A7EC2)](https://discord.gg/yYv7GZ8)
Version 7 | [Version 6(日本語)](/docs/README.ja-JP.md) ## 特徴 - パフォーマンスと UX/DX を念頭に構築 - 非制御フォームバリデーション - [UIライブラリ](https://codesandbox.io/s/react-hook-form-v7-controller-5h1q5)と統合し、すぐに利用が可能 - [依存関係](./package.json)がなく、[小さいサイズ](https://bundlephobia.com/result?p=react-hook-form@latest) - ブラウザのネイティブ[バリデーション](https://react-hook-form.com/get-started#Applyvalidation)をサポート - [Yup](https://github.com/jquense/yup), [Zod](https://github.com/vriad/zod), [Superstruct](https://github.com/ianstormtaylor/superstruct), [Joi](https://github.com/hapijs/joi), [Vest](https://github.com/ealush/vest), [class-validator](https://github.com/typestack/class-validator), [io-ts](https://github.com/gcanti/io-ts), [nope](https://github.com/bvego/nope-validator) また custom をサポート ## インストール npm install react-hook-form ## リンク集 - [Get started](https://react-hook-form.com/get-started) - [API](https://react-hook-form.com/docs) - [Examples](https://github.com/bluebill1049/react-hook-form/tree/master/examples) - [Demo](https://react-hook-form.com) - [Form Builder](https://react-hook-form.com/form-builder) - [FAQs](https://react-hook-form.com/faqs) ## Quickstart ```jsx import React from 'react'; import { useForm } from 'react-hook-form'; function App() { const { register, handleSubmit, formState: { errors }, } = useForm(); const onSubmit = (data) => console.log(data); return (
{/* register an input */} {errors.lastName &&

Last name is required.

} {errors.age &&

Please enter number for age.

}
); } ``` ## スポンサー 親切で素敵なスポンサー(個人/企業)に感謝します!

@sayav @lemcii @washingtonsoares @lixunn @SamSamskies @peaonunes @wilhelmeek @iwarner @joejknowles @chris-gunawardena @Tymek @Luchanso @vcarel @gragland @tjshipe @krnlde @msutkowski @mlukaszczyk

## 支持者(後援者) すべての支援者(後援者)に感謝します! [[支持者(後援者)になる](https://opencollective.com/react-hook-form#backer)]. ## 組織 素晴らしい組織に感謝します! [[貢献する](https://opencollective.com/react-hook-form/contribute)]. ## コントリビューター 素晴らしいコントリビューターに感謝します! [[コントリビューターになる](CONTRIBUTING.md)].