React Hook Form Logo - React hook custom hook for form validation

Formulaires performants, flexibles et extensibles dotés d'une validation poussée et facile à utiliser.

[![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)

React Hook Form video - React custom hook for form validation

English | 繁中 | 简中 | 日本語 | 한국어 | Français | Italiano | Português | Español | Русский | Deutsch | Türkçe ## Fonctionnalités - Développé en privilegiant les performances et l'experience developpeur. - Formulaires non-contrôlés. - Améliorez les performances du formulaire contrôlé. - [Taille reduite](https://bundlephobia.com/result?p=react-hook-form@latest) sans aucune dépendance. - Respecte les normes de validation HTML. - Compatible avec React Native. - Prend en charge [Yup](https://github.com/jquense/yup), [Joi](https://github.com/hapijs/joi), [Superstruct](https://github.com/ianstormtaylor/superstruct) ou personnalisé - Supporte la validation native du navigateur. - Possibilité de développer des formulaires rapidement grâce au [form builder](https://react-hook-form.com/form-builder). ## Installation $ npm install react-hook-form ## Liens - [Motivation](https://medium.com/@bruce1049/form-validation-with-hook-in-3kb-c5414edf7d64) - [Tutoriel vidéo](https://www.youtube.com/watch?v=-mFXqOaqgZk&t) - [Bien demarrer](https://react-hook-form.com/get-started) - [API](https://react-hook-form.com/docs) - [Exemples](https://github.com/bluebill1049/react-hook-form/tree/master/examples) - [Démo](https://react-hook-form.com) - [Form Builder](https://react-hook-form.com/form-builder) - [FAQs](https://react-hook-form.com/faqs) ## Démarrage rapide ```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 (
{/* register an input */} {errors.lastname && 'Last name is required.'} {errors.age && 'Please enter number for age.'}
); } ``` ## Contributeurs Merci à ces gens merveilleux! [[Become a contributor](../CONTRIBUTING.md)]. ## Organisation Merci à ces merveilleuses organisations! [[Contribuer](https://opencollective.com/react-hook-form/contribute)] ## Sponsors Merci à tous nos sponsors! [[Become a backer](https://opencollective.com/react-hook-form#backer)].