All Projects → react-hook-form → React Hook Form

react-hook-form / React Hook Form

Licence: mit
📋 React Hooks for form state management and validation (Web + React Native)

Programming Languages

typescript
32286 projects

Projects that are alternatives of or similar to React Hook Form

Usetheform
React library for composing declarative forms, manage their state, handling their validation and much more.
Stars: ✭ 40 (-99.84%)
Mutual labels:  hooks, validation, form-validation, form, forms, form-builder
react-cool-form
😎 📋 React hooks for forms state and validation, less code more performant.
Stars: ✭ 246 (-99.01%)
Mutual labels:  hooks, forms, form, form-validation, form-builder, react-hooks
React Form
⚛️ Hooks for managing form state and validation in React
Stars: ✭ 2,270 (-90.86%)
Mutual labels:  hooks, form, forms, react-hooks
Form For
ReactJS forms made easy
Stars: ✭ 118 (-99.52%)
Mutual labels:  form-validation, form, forms, form-builder
Formium
The headless form builder for the modern web.
Stars: ✭ 78 (-99.69%)
Mutual labels:  hooks, form, forms, form-builder
Resolvers
📋 Validation resolvers: Zod, Yup, Joi, Superstruct, and Vest.
Stars: ✭ 222 (-99.11%)
Mutual labels:  hooks, validation, form-validation, form
React Final Form
🏁 High performance subscription-based form state management for React
Stars: ✭ 6,781 (-72.69%)
Mutual labels:  validation, form-validation, form, forms
react-emotion-multi-step-form
React multi-step form library with Emotion styling
Stars: ✭ 25 (-99.9%)
Mutual labels:  forms, form-builder, react-hooks, custom-hooks
formalizer
React hooks based form validation made for humans.
Stars: ✭ 12 (-99.95%)
Mutual labels:  validation, form, form-validation, react-hooks
Redux Form
A Higher Order Component using react-redux to keep form state in a Redux store
Stars: ✭ 12,597 (-49.27%)
Mutual labels:  validation, form-validation, form, forms
Formik
Build forms in React, without the tears 😭
Stars: ✭ 29,047 (+16.98%)
Mutual labels:  hooks, form, forms, react-hooks
grav-plugin-form
Grav Form Plugin
Stars: ✭ 48 (-99.81%)
Mutual labels:  forms, form, form-validation, form-builder
FrontendForms
A module for ProcessWire CMS to create and validate forms on the frontend easily using the Valitron library.
Stars: ✭ 0 (-100%)
Mutual labels:  forms, form, form-validation
Fielder
A field-first form library for React and React Native
Stars: ✭ 160 (-99.36%)
Mutual labels:  hooks, form, forms
React Reactive Form
Angular like reactive forms in React.
Stars: ✭ 259 (-98.96%)
Mutual labels:  form-validation, forms, form-builder
ember-validity-modifier
Ember Octane addon to add custom validity (form validation) to form fields
Stars: ✭ 28 (-99.89%)
Mutual labels:  forms, form, form-validation
antd-react-form-builder
Example
Stars: ✭ 74 (-99.7%)
Mutual labels:  form, form-validation, form-builder
form-data-json
A zero dependency, cross browser library to easily get or set/manipulate form input values as/from a json object.
Stars: ✭ 37 (-99.85%)
Mutual labels:  forms, form, form-validation
react-useForm
World's simplest React hook to manage form state
Stars: ✭ 30 (-99.88%)
Mutual labels:  hooks, form, form-validation
vue-use-form
✅ A Vue.js composition API function to validate forms
Stars: ✭ 97 (-99.61%)
Mutual labels:  forms, form, form-validation

npm downloads npm npm Discord

Get started | API | Examples | Demo | Form Builder | FAQs

Features

Install

npm install react-hook-form

Quickstart

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 (
    <form onSubmit={handleSubmit(onSubmit)}>
      <input {...register('firstName')} /> {/* register an input */}
      <input {...register('lastName', { required: true })} />
      {errors.lastName && <p>Last name is required.</p>}
      <input {...register('age', { pattern: /\d+/ })} />
      {errors.age && <p>Please enter number for age.</p>}
      <input type="submit" />
    </form>
  );
}

Sponsors

Thanks go to these kind and lovely sponsors (companies and individuals)!

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

Backers

Thanks go to all our backers! [Become a backer].

Contributors

Thanks go to these wonderful people! [Become a contributor].

Helpers

Thank you for helping and answering questions from the community.

Organizations

Thanks go to these wonderful organizations! [Contribute].

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].