高性能で柔軟かつ拡張可能な使いやすいフォームバリデーションライブラリ。
[![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/bundlephobia/minzip/react-hook-form?style=for-the-badge)](https://bundlephobia.com/result?p=react-hook-form)
[![Coverage Status](https://img.shields.io/coveralls/github/bluebill1049/react-hook-form/master?style=for-the-badge)](https://coveralls.io/github/bluebill1049/react-hook-form?branch=master)
[![Tweet](https://img.shields.io/twitter/url/http/shields.io.svg?style=social)](https://twitter.com/intent/tweet?text=React+hooks+for+form+validation+without+the+hassle&url=https://github.com/bluebill1049/react-hook-form) [![Join the community on Spectrum](https://withspectrum.github.io/badge/badge.svg)](https://spectrum.chat/react-hook-form)
English | 繁中 | 简中 | 日本語 | 한국어 | Français | Italiano | Português | Español | Русский | Deutsch | Türkçe
## 特徴
- パフォーマンスと DX を念頭に構築
- 非制御フォームバリデーション
- コントロールされたフォームのパフォーマンスを向上させます
- 依存関係のない[小さなサイズ](https://bundlephobia.com/result?p=react-hook-form@latest)
- React Native との互換性
- [Yup](https://github.com/jquense/yup), [Joi](https://github.com/hapijs/joi), [Superstruct](https://github.com/ianstormtaylor/superstruct) またはカスタムをサポート
- ブラウザのネイティブバリデーションをサポート
- [Form Builder](https://react-hook-form.com/jp/form-builder) でフォームを素早く作成
## インストール
$ npm install react-hook-form
## リンク集
- [動機](https://medium.com/@bruce1049/form-validation-with-hook-in-3kb-c5414edf7d64)
- [ビデオチュートリアル](https://www.youtube.com/watch?v=-mFXqOaqgZk&t)
- [始める](https://react-hook-form.com/jp/get-started)
- [API](https://react-hook-form.com/jp/api)
- [例](https://github.com/bluebill1049/react-hook-form/tree/master/examples)
- [デモ](https://react-hook-form.com/jp)
- [Form Builder](https://react-hook-form.com/jp/form-builder)
- [FAQs](https://react-hook-form.com/jp/faqs)
## クイックスタート
```jsx
import React from 'react';
import { useForm } from 'react-hook-form';
function App() {
const { register, handleSubmit, errors } = useForm(); // initialise the hook
const onSubmit = (data) => {
console.log(data);
};
return (
);
}
```
## コントリビューター
これらの素晴らしい人々に感謝します![[コントリビューターになる](../CONTRIBUTING.md)]
## 組織
これらの素晴らしい組織に感謝します! [[する](https://opencollective.com/react-hook-form/contribute)]
## スポンサー
全てのスポンサーに感謝します! [[スポンサーになる](https://opencollective.com/react-hook-form#backer)]