Skip to content
D

Documentation

Official documentation

by react-hook-formFree

Domain Rating by Ahrefs77

#1494in Productivity
0In stores

Description

React Hook Form is a form library for React focused on performance, flexibility and simple validation, and react-hook-form.com is its offici…

Highlights

  • useForm hook with register and handleSubmit
  • Built-in rules, schema resolvers or custom validation
  • Validation modes: submit, blur, change, touched or all
  • Isolated re-renders for performance
  • Follows HTML form standards
  • Detailed API docs, guides and FAQ

Ratings & Reviews

No ratings yet

Be the first to rate Documentation.

People also visit

R

react-hook-form

React Hook Form performance optimization for client-side form validation

AI Skills
Get
F

Formik

Build forms in React, without the tears

Productivity
Launch
R

Remix Forms

Full-stack forms for React Router

Productivity
Launch
R

rc-field-form

React Form Component

UI Libraries
Launch
F

Formiz

React forms with ease! Composable, headless & with built-in multi steps

Productivity
Launch
V

Vee Validate

Painless Vue forms

Productivity
Launch

Documentation FAQ

What is React Hook Form?

A React library for building performant, flexible forms with easy validation using hooks.

How do I install it?

Run npm install react-hook-form, then use the useForm hook in your component.

How does validation work?

Declare rules like required, minLength, min or pattern when registering a field, or use a schema resolver. Errors are available in formState.errors.

When does validation run?

You choose the mode: onSubmit, onBlur, onChange, onTouched or all.

Why is it fast?

It isolates re-renders so components only update for the values they watch, and the site highlights faster mounting than controlled forms.

What are the best Documentation alternatives?

Popular alternatives to Documentation include Formik, Remix Forms and Formiz. See all Documentation alternatives

Developer Stuff

Badges