Skip to content

React Hook Form vs Formik: A Working Practical Comparison

React Hook Form wins on performance and bundle size vs Formik. Both work with Zod and Yup. Here's when each one makes sense for your project.

· · 8 min read

Updated: November 27, 2026

Table comparing React Hook Form 7.92.0 and Formik 2.4.9 by input model, size, downloads and re-renders

Quick Take

React Hook Form uses uncontrolled inputs backed by refs. Typing in a field triggers zero re-renders. Formik uses controlled state, every keystroke updates React state. For new projects in 2026, React Hook Form is the clear choice: smaller bundle (~9.4kB vs ~13kB), fewer re-renders, and better TypeScript ergonomics. Formik makes sense only if you're already running it in production.

React Hook Form and Formik are both React form libraries that handle field state, validation, and submission, but they take opposite approaches: React Hook Form reads values from uncontrolled DOM refs, while Formik stores every field in React state. Both libraries have been solving React form validation for years. Formik was the dominant choice from 2018 to 2021. React Hook Form has since taken over. The weekly download gap is wide: React Hook Form had about 68 million npm downloads in the week of November 16 to 22, 2026, and Formik about 6.4 million. Download counts don't tell you which one fits your specific situation.

Uncontrolled input is a form field whose value lives in the DOM itself rather than in React state, accessed via a ref only when needed, such as on submit. Controlled input is a form field whose value is stored in React state and updated on every change event, which is the model Formik uses for every field by default.

React Hook Form isn't standing still either. Version 8 published its first beta in December 2025 with first-class support for React Compiler, meaning it needs zero extra config to play nicely with automatic memoization, plus simpler flat data structures for useFieldArray. A few APIs are shifting under the hood: the register function now hands back the input ref directly instead of a wrapped object, and the old watch subscription callback is being replaced by a dedicated subscribe method. If you're starting a new project today, it's worth reading the v7-to-v8 migration notes before you build against v7 patterns that are about to be deprecated. Formik hasn't shipped a comparable update. Its last major version is still 2.0, and the 2.4 line from 2023 has had patch releases only, so it's in maintenance mode: it installs and works, but nothing new is coming.

Uncontrolled refs vs controlled state

React Hook Form registers inputs with refs and reads values from the DOM on submit. Components don't re-render as users type. Formik stores every field value in React state, so each keystroke triggers a state update and a re-render.

It sounds like an implementation detail until a form has 20+ fields, where it can mean noticeable lag on low-end devices.

React Hook FormFormik
Input modelUncontrolled (refs)Controlled (state)
Bundle size (min+gzip, Bundlephobia)16.4kB for 7.92.0, zero dependencies13.1kB for 2.4.9
Weekly npm downloads (Nov 16-22, 2026)68.3M6.4M
Re-renders on type0 (default)Whole form, every keystroke
TypeScript supportBuilt-in, excellentAvailable but verbose
Zod integration@hookform/resolversformik + zod (manual)
React 19 <form action>Not native (call the action from handleSubmit)Not native (call it from onSubmit)
Field arraysuseFieldArray hook (flat arrays in v8)FieldArray component
React Compiler supportFirst-class, no configNot addressed
Release statusv7 stable, v8 in beta since December 2025v2.4 (2023), patch releases only

Setup comparison

React Hook Form:

import { useForm } from 'react-hook-form';
import { z } from 'zod';
import { zodResolver } from '@hookform/resolvers/zod';

const schema = z.object({
  email: z.string().email('Invalid email'),
  password: z.string().min(8, 'At least 8 characters'),
});

type LoginForm = z.infer<typeof schema>;

function LoginForm() {
  const { register, handleSubmit, formState: { errors } } = useForm<LoginForm>({
    resolver: zodResolver(schema),
  });

  return (
    <form onSubmit={handleSubmit((data) => console.log(data))}>
      <input {...register('email')} />
      {errors.email && <p>{errors.email.message}</p>}
      <input type="password" {...register('password')} />
      {errors.password && <p>{errors.password.message}</p>}
      <button type="submit">Log in</button>
    </form>
  );
}

Formik with the same Zod schema:

import { Formik, Form, Field, ErrorMessage } from 'formik';
import { toFormikValidationSchema } from 'zod-formik-adapter';

function LoginForm() {
  return (
    <Formik
      initialValues={{ email: '', password: '' }}
      validationSchema={toFormikValidationSchema(schema)}
      onSubmit={(values) => console.log(values)}
    >
      <Form>
        <Field name="email" />
        <ErrorMessage name="email" component="p" />
        <Field type="password" name="password" />
        <ErrorMessage name="password" component="p" />
        <button type="submit">Log in</button>
      </Form>
    </Formik>
  );
}

React Hook Form's API is more explicit. Formik's component-based API is arguably more readable at a glance. I prefer RHF because it degrades better with third-party inputs and TypeScript inference works without extra effort.

When Does Formik Still Make Sense?

Mostly when you're already using it.

If your codebase has 40 forms built with Formik, the migration cost isn't worth it unless you're hitting real performance problems.

Share this Post on X Bluesky

Formik's <Field> component renders well inside form-builder UIs where you're generating forms dynamically. The declarative component structure is easier to read for teams who think in JSX-first terms. That's a legitimate reason to keep it.

For new forms in 2026, though, there's no strong case for Formik over React Hook Form. React 19's <form action={asyncFn}> isn't the deciding factor, though: neither library wires into it natively. With RHF you call the action from inside handleSubmit, with Formik from onSubmit.

Validation libraries: Zod, Yup, Valibot

Both work with Yup and Zod. React Hook Form works with either via @hookform/resolvers. Formik has a first-class validationSchema prop for Yup and third-party adapters for Zod.

If you're starting fresh and don't have a preference, Zod is the better validation library in 2026 for its TypeScript inference and active development, though it's the heavier package of the two. Both RHF and Formik support it well enough. Valibot is worth watching too: it's modular, so a small schema ships far less than the whole library, and it shares a Zod-like API, with React Hook Form support via the same @hookform/resolvers package. For most teams though, Zod remains the practical default. Already have the form's TypeScript interface? The TypeScript to Zod converter drafts the schema from it. If you want a step-by-step walkthrough of the full Zod + React Hook Form setup, see TypeScript form validation with Zod, it covers writing one schema that covers both runtime checks and compile-time types.

Where the performance gap shows up

The zero-re-render claim for React Hook Form needs context. In a login form with two fields, the difference is invisible. In a form with 30+ fields, think a checkout flow with shipping, billing, coupon, and preferences, Formik's controlled approach means every keypress fires setState on the parent, potentially re-rendering every field in the form.

The gap shows up fastest on a long form on a mid-range Android phone. Formik re-renders the whole form on every keystroke, while React Hook Form isolates re-renders per field, and React Hook Form's own FAQ says typing re-renders only the components subscribed to that value. Not enough to fail a user test on desktop, but noticeable on budget devices or inside a slow React tree.

The bottleneck is usually the rest of your component tree, more than the form library. If you wrap a Formik form inside a component that re-renders for other reasons, you compound the problem. React Hook Form's uncontrolled approach sidesteps this entirely.

Dynamic field arrays

Both libraries handle dynamic fields, lists where users can add or remove rows, but the APIs feel different.

React Hook Form's useFieldArray hook gives you methods like append, remove, move, and swap that don't trigger a full form re-render. Only the affected row updates.

const { fields, append, remove } = useFieldArray({ control, name: 'skills' });

return fields.map((field, index) => (
  <div key={field.id}>
    <input {...register(`skills.${index}.name`)} />
    <button type="button" onClick={() => remove(index)}>Remove</button>
  </div>
));

Formik's <FieldArray> component is more declarative but triggers re-renders across all fields when one changes, since everything lives in state. For arrays under 10 items it doesn't matter. For large dynamic lists, ingredient editors, tag managers, line-item tables, React Hook Form's approach holds up better.

Third-party inputs: Controller vs useField

Most real projects use component libraries, MUI, Chakra UI, Radix. Many of their inputs don't forward a ref to a native input element, which means you can't spread register() onto them directly.

React Hook Form solves this with <Controller>:

<Controller
  name="country"
  control={control}
  render={({ field }) => <Select {...field} options={countryOptions} />}
/>

Formik handles it with useField() or setFieldValue() inside an onChange handler. Both approaches work, but RHF's Controller component keeps the integration self-contained and type-safe. If most of your form fields are custom components, date pickers, autocompletes, rich text, this pattern comes up constantly and RHF handles it with less boilerplate.

Which Should You Choose?

For any new project: React Hook Form. Fewer re-renders, better TypeScript, and still actively developed. The API takes about 30 minutes to learn if you've used Formik before.

For existing Formik codebases: keep it unless you have a specific problem to solve. Refactoring forms is low-priority work unless they're causing measurable performance issues.

To decide in practice:

  1. Check how many fields the form has. Under 10, either library performs fine and the choice comes down to team preference.
  2. Check whether you're starting a new project or maintaining an existing one. New projects should default to React Hook Form; existing Formik codebases rarely justify a rewrite.
  3. Check how you'll submit. If you want React 19 <form action> Actions, neither library integrates natively; both call your action from their own submit handler, so this doesn't decide anything.
  4. Don't decide on bundle size. Bundlephobia puts react-hook-form 7.92.0 at 16.4kB and formik 2.4.9 at 13.1kB min+gzip for the whole package, so measure what your own build ships.

Frequently Asked Questions

Does React Hook Form work with Zod?
Yes. Install @hookform/resolvers and pass zodResolver(schema) to useForm's resolver option. The schema infers TypeScript types automatically, no manual type definitions needed.
Is Formik still maintained?
Only in maintenance mode. There has been no new major since 2.0, and the 2.4 line from 2023 has had patch releases only, no new features. It still installs on current React, but for new projects in 2026 React Hook Form is the recommended choice.
Can React Hook Form handle complex multi-step forms?
Yes. Use useFormContext() to share form state across components without prop drilling. For wizard-style flows, persist field values with defaultValues and trigger validation per-step with trigger().
Why does Formik cause more re-renders than React Hook Form?
Formik stores field values in React state and updates them on every keystroke. React Hook Form reads values from uncontrolled DOM inputs via refs, so typing in a field triggers zero component re-renders by default.