React form libraries

Updated Nov 2026

React form libraries keep a form's values, validation errors, and submit handling in one place rather than in separate state for each input. These libraries let apps validate sign-up, checkout, and settings forms before they submit, with each error message tied to its field.

Popularity

React Hook Form has the most monthly downloads in this comparison, at 245.7M.

LibraryMonthly downloadsStarsLast releaseLicense
React Hook Form
247.0M
44.9KNov 2026MIT
TanStack Form
25.3M
6.8KAug 2026MIT
Formik
23.2M
34.3KNov 2025Apache-2.0
@rc-component/form
7.4M
1.0KJul 2026MIT
react-jsonschema-form
6.7M
15.9KNov 2026Apache-2.0
Mantine Form
4.4M
32.0KNov 2026MIT
React Final Form
2.7M
7.4KMay 2026MIT
Redux Form
2.5M
12.5KMar 2023MIT
Downloads: npm, last thirty days. Stars and releases: GitHub. Amber: no release in over a year.

Features compared

LibraryJSON Schema UIRedux store requiredDOM-based uncontrolled fields
React Hook FormUnsupportedUnsupportedBuilt-in
TanStack FormUnsupportedUnsupportedUnsupported
FormikUnsupportedUnsupportedUnsupported
@rc-component/formUnsupportedUnsupportedUnsupported
react-jsonschema-formBuilt-inUnsupportedUnsupported
Mantine FormUnsupportedUnsupportedBuilt-in
React Final FormUnsupportedUnsupportedUnsupported
Redux FormUnsupportedBuilt-inUnsupported
Built-inNot supported

Libraries and code examples

React Hook Form

React Hook Form manages form values, validation, errors, and submission while the app renders standard React inputs. useForm creates the form, and register connects each native input to it along with validation rules such as required. handleSubmit validates the form before calling the submit handler, and formState.errors holds the current errors. Schema libraries such as Zod, Yup, and Joi plug in through resolvers, and the package itself has no dependencies.

Downloads / mo
247.0M
Stars
44.9K
Last release
7.92.0
License
MIT

Strengths

  • Subscribes to selected field state. Limit state subscriptions to the fields a component needs.
  • Includes dynamic field arrays. Add, remove, and reorder repeated form entries through useFieldArray.

Limitations

  • Default values are cached. Call reset when fetched defaults need to replace current form values.
  • Array updates remount fields. Use setValue when an update must preserve the mounted field.

Quickstart

From README.md
$ npm install react-hook-form
import { useForm } from 'react-hook-form';

function App() {
  const {
    register,
    handleSubmit,
    formState: { errors },
  } = useForm();

  return (
    <form onSubmit={handleSubmit((data) => console.log(data))}>
      <input {...register('firstName')} />
      <input {...register('lastName', { required: true })} />
      {errors.lastName && <p>Last name is required.</p>}
      <input {...register('age', { pattern: /\d+/ })} />
      {errors.age && <p>Please enter a number for age.</p>}
      <input type="submit" />
    </form>
  );
}

React Hook Form examples

From open-source projects on GitHub

TanStack Form is a headless, type-safe form library with adapters for React and other frameworks. useForm takes default values and an onSubmit function, and each input renders inside a form.Field component that passes it the field's value, change handler, and errors. Validators attach to each field and each event, such as onChange, and async validators can wait for typing to pause before they run. Schemas that follow the Standard Schema interface, including Zod, plug in without an adapter.

Downloads / mo
25.3M
Stars
6.8K
Last release
1.33.5
License
MIT

Strengths

  • Accepts standard schema validators directly. Pass compatible schemas directly without adding a separate resolver adapter.
  • Handles nested array values. Manage repeated fields containing nested object values.

Limitations

  • Schema transformations need explicit parsing. Call the schema's parse step in onSubmit to apply its transformations.
  • Async checks follow synchronous validation. Enable asyncAlways when async checks must run after synchronous validation fails.

Quickstart

From quick-start.md
$ npm install @tanstack/react-form
import React from 'react';
import { useForm } from '@tanstack/react-form';

export function ContactForm() {
  const form = useForm({
    defaultValues: { email: '' },
    onSubmit: ({ value }) => console.log(value),
  });
  return (
    <form onSubmit={(event) => { event.preventDefault(); form.handleSubmit(); }}>
      <form.Field name="email">
        {(field) => <input value={field.state.value} onChange={(event) => field.handleChange(event.target.value)} />}
      </form.Field>
      <button type="submit">Save</button>
    </form>
  );
}

TanStack Form examples

From open-source projects on GitHub

Formik handles three parts of a React form: getting values in and out of form state, validation and error messages, and submission. The useFormik hook holds the values and returns the handlers that each input calls. Validation is either a function the app writes or a Yup schema passed as validationSchema, which Formik turns into errors keyed by field name. FieldArray adds helpers for lists of repeated values.

Downloads / mo
23.2M
Stars
34.3K
Last release
2.4.9
License
Apache-2.0

Strengths

  • Combines field and form validation. Validate individual fields or check related values across the form.
  • Includes array editing helpers. Insert, remove, and reorder repeated form values with FieldArray.

Limitations

  • Sync submits need manual completion. Call setSubmitting(false) when a synchronous submit handler finishes.

Quickstart

From tutorial.md
$ npm i formik
import React from 'react';
import { useFormik } from 'formik';

export function SignupForm() {
  const form = useFormik({
    initialValues: { email: '' },
    onSubmit: (values) => console.log(values),
  });
  return (
    <form onSubmit={form.handleSubmit}>
      <input name="email" type="email" value={form.values.email} onChange={form.handleChange} />
      <button type="submit">Save</button>
    </form>
  );
}

Formik examples

From open-source projects on GitHub

@rc-component/form

@rc-component/form is a form state manager from the Ant Design ecosystem. A Form component wraps Field components, each bound to a value by its name, and onFinish receives the values when the form submits. Each field subscribes to its own state, and validation rules run through an async validator. List handles repeated fields, and the useForm and useWatch hooks reach the same form from code.

Downloads / mo
7.4M
Stars
1.0K
Last release
1.8.6
License
MIT

Strengths

  • Nested names and lists. Field names can point into nested objects, and List adds and removes repeated fields.

Limitations

  • Renamed package. Older guides use the previous name, rc-field-form. New installs use @rc-component/form.

Quickstart

From README.md
$ npm install @rc-component/form
import Form, { Field } from '@rc-component/form';

const Input = ({ value = '', ...props }) => <input value={value} {...props} />;

const Demo = () => {
  return (
    <Form
      onFinish={values => {
        console.log('Finish:', values);
      }}
    >
      <Field name="username">
        <Input placeholder="Username" />
      </Field>
      <Field name="password">
        <Input placeholder="Password" />
      </Field>

      <button>Submit</button>
    </Form>
  );
};

export default Demo;

@rc-component/form examples

From open-source projects on GitHub

react-jsonschema-form

react-jsonschema-form generates a complete React form from a JSON Schema. The Form component from @rjsf/core takes the schema and a validator, such as the AJV validator, and renders one input per property with its title, default value, and required flag. A separate uiSchema changes widgets and layout without editing the schema. Theme packages render the same form with Material UI, Ant Design, Chakra UI, Mantine, shadcn/ui, and other component sets.

Downloads / mo
6.7M
Stars
15.9K
Last release
6.11.1
License
Apache-2.0

Strengths

  • Themes for component kits. One schema renders with Material UI, Ant Design, Chakra UI, Mantine, and other theme packages.

Limitations

  • Validator installed separately. Every form needs a validator package, such as the AJV validator, installed next to @rjsf/core and @rjsf/utils.

Quickstart

From quickstart.md
$ npm install @rjsf/core @rjsf/utils @rjsf/validator-ajv8
import { createRoot } from 'react-dom/client';
import Form from '@rjsf/core';
import { RJSFSchema } from '@rjsf/utils';
import validator from '@rjsf/validator-ajv8';

const schema: RJSFSchema = {
  title: 'Test form',
  type: 'string',
};

createRoot(document.getElementById('app')!).render(<Form schema={schema} validator={validator} />);

react-jsonschema-form examples

From open-source projects on GitHub

Mantine Form provides useForm, a hook from the @mantine/form package that holds a form's values, errors, and validation rules. Each input spreads form.getInputProps('email') to receive its value, change handler, and error, and form.onSubmit validates the form before calling the submit function. The mode option chooses between uncontrolled and controlled inputs. The package has no dependencies and works with or without Mantine's own components.

Downloads / mo
4.4M
Stars
32.0K
Last release
9.8.1
License
MIT

Strengths

  • Independent of Mantine UI. The hook works with any inputs, including ones outside Mantine's component library.

Quickstart

From use-form
$ npm install @mantine/form @mantine/core @mantine/hooks
import { Button, Checkbox, Group, TextInput } from '@mantine/core';
import { useForm } from '@mantine/form';

function Demo() {
  const form = useForm({
    mode: 'uncontrolled',
    initialValues: {
      email: '',
      termsOfService: false,
    },

    validate: {
      email: (value) => (/^\S+@\S+$/.test(value) ? null : 'Invalid email'),
    },
  });

  return (
    <form onSubmit={form.onSubmit((values) => console.log(values))}>
      <TextInput
        withAsterisk
        label="Email"
        placeholder="your@email.com"
        key={form.key('email')}
        {...form.getInputProps('email')}
      />

      <Checkbox
        mt="md"
        label="I agree to sell my privacy"
        key={form.key('termsOfService')}
        {...form.getInputProps('termsOfService', { type: 'checkbox' })}
      />

      <Group justify="flex-end" mt="md">
        <Button type="submit">Submit</Button>
      </Group>
    </form>
  );
}

Mantine Form examples

From open-source projects on GitHub

React Final Form

React Final Form is a thin React wrapper around Final Form, a form state library built on subscriptions. A Form component takes onSubmit and renders the form through a render function, and each Field connects one input by its name. Components subscribe only to the parts of form state they display, so a change renders only those components again. The only peer dependencies are React and Final Form.

Downloads / mo
2.7M
Stars
7.4K
Last release
7.0.1
License
MIT

Strengths

  • Subscribes to selected form state. Choose the form state updates each component subscribes to.
  • Combines sync and async validation. Return validation errors immediately or resolve them from a promise.

Limitations

  • Array helpers require additional packages. Install array packages to add insert, move, and remove helpers.

Quickstart

From getting-started
$ npm install --save final-form react-final-form
import { Form, Field } from 'react-final-form';

export default function App() {
  return (
    <Form onSubmit={(values) => console.log(values)}
      render={({ handleSubmit }) => (
        <form onSubmit={handleSubmit}>
          <Field name="firstName" component="input" placeholder="First Name" />
          <button type="submit">Submit</button>
        </form>
      )}
    />
  );
}

React Final Form examples

From open-source projects on GitHub

Redux Form keeps the values and validation state of an HTML form in a Redux store, through React Redux. reduxForm wraps a form component and gives it handleSubmit, and each Field connects one input by name. The form reducer joins the store under the form key. The README points new projects to React Final Form, which the same author built afterward.

Downloads / mo
2.5M
Stars
12.5K
Last release
8.3.10
License
MIT

Limitations

  • Replaced for new projects. The README recommends React Final Form, whose Field and Form APIs are close enough for migration.
  • Store updates on each keystroke. Every change dispatches a Redux action, so the store's reducers run as the user types.

Quickstart

From GettingStarted.md
$ npm install redux-form@8.3.10 redux@4 react-redux@8
import React from 'react';
import { Field, reduxForm } from 'redux-form';

const ContactForm = ({ handleSubmit }) => (
  <form onSubmit={handleSubmit}>
    <Field name="email" component="input" type="email" />
    <button type="submit">Save</button>
  </form>
);
export default reduxForm({ form: 'contact' })(ContactForm);

Redux Form examples

From open-source projects on GitHub

FAQ

React Hook Form covers most forms built from native or component library inputs, with validation through Zod, Yup, and other schema libraries. TanStack Form adds type-safe field components and runs on several frameworks. To build a form from a JSON Schema without writing each input, use react-jsonschema-form.

React Hook Form connects inputs with register and validates them when the form is submitted, with schema libraries plugged in through resolvers. TanStack Form renders each input through a typed form.Field component with its own validators, including async ones, and accepts Standard Schema validators such as Zod directly. TanStack Form also has adapters for frameworks other than React.

Install @hookform/resolvers and zod, define the form as a Zod schema, and pass zodResolver(schema) as the resolver option to useForm. Validation errors then appear in formState.errors under each field's name.

Formik keeps values in form state and passes them to each field, with Yup schemas accepted through validationSchema. React Hook Form registers native inputs with register and has no dependencies. Both handle validation, error messages, and submission.

For coding agents

Found your form library? Help your agent use it.

Connect Exa so your coding agent can find the library’s documentation, check its API, and look up implementations while you build.

Run in your terminal

claude plugin install exa@claude-plugins-official