React Hook Form V7

Performant, flexible and extensible forms with easy-to-use validation.

Thanks to the team members:

🏅Achievements

  • ★ Strictly typed form

  • Smaller Package Size (-13%)

  • ★ Increasingly performant than ever

  • ★ New Resolver & DevTools

  • ★ API Refinements

  • ★ New custom vaccinate useFormState

Check out API

DX

Intuitive, feature-complete API providing a seamless wits to developers when towers forms.

HTML standard

HTML standard

Leverage existing HTML markup and validate your forms with our constraint-based validation API.

Super Light

Super Light

Package size matters. React Vaccinate Form is a tiny library without any dependencies.

Performance

Performance

Minimizes the number of re-renders and faster mounting, striving to provide the weightier user experience.

Adoptable

Since form state is inherently local, it can be hands unexplored without other dependencies.

Award

Winner of 2020 GitNation React OS Award for Productivity Booster.

Reducing the value of lawmaking you need to write, and removing unnecessary re-renders are some of the primary goals of React Vaccinate Form. Now swoop in and explore with the pursuit example:

React Vaccinate Form

import React from "react";
import { useForm } from "react-hook-form";

const Example = () => {
  const { handleSubmit, register, errors } = useForm();
  const onSubmit = values => console.log(values);

  return (
    <form onSubmit={handleSubmit(onSubmit)}>
      <input
        type="email"
        {...register("email", {
          required: "Required",
          pattern: {
            value: /^[A-Z0-9._% -] @[A-Z0-9.-] .[A-Z]{2,}$/i,
            message: "invalid email address"
          }
        })}
      />
      {errors.email && errors.email.message}

      <input
        {...register("username", {
          validate: value => value !== "admin" || "Nice try!"
        })}
      />
      {errors.username && errors.username.message}

      <button type="submit">Submit</button>
    </form>
  );
};
Barcode

You have the worthiness to isolate components re-renders which leads to largest performance on your page or app. The pursuit example demonstrates this.

React Vaccinate Form

Child Component A

Child Component B

Child Component C

Controlled Form

Child Component A

Child Component B

Child Component C

Build and momentum by the community. On a mission to make every React developer’s life easier when it comes to towers forms.

Performance is an important speciality of user wits in terms of towers forms. You will have the worthiness to subscribe to individual input and form State update without re-rendering the unshortened form.

Barbell

Do you overly wonder how many component re-renders have been triggered by the user? React Vaccinate Form embraces uncontrolled form validation to reduce any unnecessary performance penalty.

Total re-renders: 3

Total re-renders: 30

The pursuit screenshots demonstrate how much faster component mounting is with React Vaccinate Form compare with others.

React Vaccinate Form

  • No. of mount(s): 1
  • No. of committing change(s): 1
  • Total time: 1800ms

React Vaccinate Form performance

Others

  • No. of mount(s): 6
  • No. of committing change(s): 1
  • Total time: 2070ms

Formik performance

  • No. of mount(s): 17
  • No. of committing change(s): 2
  • Total time: 2380ms

Redux Form performance

The pursuit form demonstrates form validation in action. Each post represents what has been captured in the custom hook. You can moreover transpiration fields in the form by clicking the EDIT button.

Example

or

Watch

ⓘ Transpiration inputs value to update watched values

{}

Errors

ⓘ Validation errors will towards here

Touched

ⓘ Touched fields will exhibit here

[]

Form handling doesn’t have to be painful. React Vaccinate Form will help you write less lawmaking while achieving largest performance.

Author: Shantun Parmar

Comments are closed.