Use this file to discover Exa products, pricing, evaluations, comparisons, use cases, agent interfaces, and technical documentation before exploring further.
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.
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.
const useFormField = () => {
const fieldContext = React.useContext(FormFieldContext)
const itemContext = React.useContext(FormItemContext)
const { getFieldState } = useFormContext()
const formState = useFormState({ name: fieldContext.name })
const fieldState = getFieldState(fieldContext.name, formState)
if (!fieldContext) {
throw new Error("useFormField should be used within <FormField>")
}
const { id } = itemContext
return {
id,
name: fieldContext.name,
formItemId: `${id}-form-item`,
formDescriptionId: `${id}-form-item-description`,
formMessageId: `${id}-form-item-message`,
...fieldState,
}
}
TanStack Form
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.
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.
@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.
export function FormItem({
name,
label,
rules,
initialValue,
valuePropName,
hideLabel,
className,
children,
}: FormItemProps) {
return (
<Field name={name} rules={rules} initialValue={initialValue} valuePropName={valuePropName}>
{(control, meta) => {
const error = meta.errors?.[0]
// rc hands back the value/onChange pair under the configured prop names. const bound = isValidElement(children) ? cloneElement(children, control) : children
if (hideLabel && !error) return bound
return (
<FieldChrome
// No `required` asterisk: these schemas mark nothing on the label. label={hideLabel ? undefined : label}
error={error}
className={className}
>
{bound}
</FieldChrome>
)
}}
</Field>
)
}
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.
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.
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.
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.
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.
For new projects, no. The Redux Form README says form state rarely belongs in Redux, and its author built React Final Form as the replacement, with a component API close enough for migration. Redux Form remains for apps that read or change form data from far outside the form.
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.