{"schemaVersion":"1.0","record":{"label":"React Hook Form","description":"MIT-licensed React form-state and validation library with native-input registration, controlled-component adapters and scoped subscriptions.","aliases":["RHF"],"kind":"software","website":"https://react-hook-form.com","overview":"React Hook Form is an open-source library for managing form values, validation and submission in React. Its basic workflow registers inputs and runs a callback after validation, while Controller integrates controlled UI components. It can reduce repeated form plumbing in a generated application, but rendering controls and correctly handling server outcomes remain application work.","license":"MIT","lifecycle":"active","example":false,"features":[{"name":"Native and controlled input integration","status":"supported","detail":"register handles native inputs; Controller maps controlled component value, events and ref.","useCase":"Form state, validation and submission handling in React applications","platforms":["React web applications","React Native through compatible controlled inputs"],"region":"Version, build and integration requirements apply","evidence":[{"url":"https://github.com/react-hook-form/react-hook-form/blob/master/README.md","locator":"Native inputs, register/handleSubmit and schema integrations","retrievedAt":"2026-10-07T23:11:30Z","kind":"vendor"},{"url":"https://github.com/react-hook-form/documentation/blob/master/src/content/docs/usecontroller/controller.mdx","locator":"Controlled component events/ref/default values and unregister warning","retrievedAt":"2026-10-07T23:11:45Z","kind":"vendor"}]},{"name":"Validation and transformed submissions","status":"supported","detail":"Resolvers can transform output; callback typing must reflect transformed values rather than assuming the input shape.","useCase":"Form state, validation and submission handling in React applications","platforms":["React web applications","React Native through compatible controlled inputs"],"region":"Version, build and integration requirements apply","evidence":[{"url":"https://github.com/react-hook-form/documentation/blob/master/src/content/docs/useform/handlesubmit.mdx","locator":"Disabled fields, exceptions, server errors and transformed output","retrievedAt":"2026-10-07T23:11:45Z","kind":"vendor"}]},{"name":"Retaining disabled field values","status":"limited","detail":"Disabled inputs appear undefined or are omitted in the documented workflows; use an appropriate read-only strategy when retention is required.","useCase":"Form state, validation and submission handling in React applications","platforms":["React web applications","React Native through compatible controlled inputs"],"region":"Version, build and integration requirements apply","evidence":[{"url":"https://github.com/react-hook-form/documentation/blob/master/src/content/docs/useform/handlesubmit.mdx","locator":"Disabled fields, exceptions, server errors and transformed output","retrievedAt":"2026-10-07T23:11:45Z","kind":"vendor"},{"url":"https://github.com/react-hook-form/documentation/blob/master/src/content/docs/usecontroller/controller.mdx","locator":"Controlled component events/ref/default values and unregister warning","retrievedAt":"2026-10-07T23:11:45Z","kind":"vendor"}]},{"name":"Scoped form-state subscriptions","status":"supported","detail":"useFormState isolates subscribed updates; read the required Proxy-backed state before rendering.","useCase":"Form state, validation and submission handling in React applications","platforms":["React web applications","React Native through compatible controlled inputs"],"region":"Version, build and integration requirements apply","evidence":[{"url":"https://github.com/react-hook-form/documentation/blob/master/src/content/docs/useformstate.mdx","locator":"Subscriptions, Proxy reads and default-value comparisons","retrievedAt":"2026-10-07T23:12:11Z","kind":"vendor"}]},{"name":"Field-array update without remount","status":"limited","detail":"The update action unmounts/remounts changed fields; the docs point to setValue when that is unwanted.","useCase":"Form state, validation and submission handling in React applications","platforms":["React web applications","React Native through compatible controlled inputs"],"region":"Version, build and integration requirements apply","evidence":[{"url":"https://github.com/react-hook-form/documentation/blob/master/src/content/docs/usefieldarray.mdx","locator":"Array update remount behavior and complete row data","retrievedAt":"2026-10-07T23:12:11Z","kind":"vendor"}]}],"alternatives":[],"slug":"react-hook-form","draftAlternatives":[{"targetSlug":"tanstack-form","status":"limited","detail":"Can replace TanStack Form for React value/validation/submission workflows after adapting field wiring and subscriptions. Resolver output and disabled-field behavior require review; neither library supplies a complete server-side form service.","useCase":"Form state, validation and submission handling in React applications","platforms":["React web applications","React Native through compatible controlled inputs"],"region":"Version, build and integration requirements apply","evidence":[{"url":"https://github.com/react-hook-form/react-hook-form/blob/master/README.md","locator":"Native inputs, register/handleSubmit and schema integrations","retrievedAt":"2026-10-07T23:11:30Z","kind":"vendor"},{"url":"https://github.com/react-hook-form/documentation/blob/master/src/content/docs/usecontroller/controller.mdx","locator":"Controlled component events/ref/default values and unregister warning","retrievedAt":"2026-10-07T23:11:45Z","kind":"vendor"},{"url":"https://github.com/react-hook-form/documentation/blob/master/src/content/docs/useform/handlesubmit.mdx","locator":"Disabled fields, exceptions, server errors and transformed output","retrievedAt":"2026-10-07T23:11:45Z","kind":"vendor"},{"url":"https://tanstack.com/form/latest/docs/overview","locator":"Headless state/validation with React adapter","retrievedAt":"2026-10-07T23:11:19Z","kind":"vendor"},{"url":"https://tanstack.com/form/latest/docs/framework/react/guides/submission-handling","locator":"Standard Schema input versus transformed output","retrievedAt":"2026-10-07T23:12:22Z","kind":"vendor"}]}],"evidence":[{"url":"https://github.com/react-hook-form/react-hook-form/blob/master/LICENSE","locator":"MIT conditions","retrievedAt":"2026-10-07T23:12:01Z","kind":"vendor"},{"url":"https://github.com/react-hook-form/react-hook-form/blob/master/README.md","locator":"Native inputs, register/handleSubmit and schema integrations","retrievedAt":"2026-10-07T23:11:30Z","kind":"vendor"},{"url":"https://github.com/react-hook-form/documentation/blob/master/src/content/docs/usecontroller/controller.mdx","locator":"Controlled component events/ref/default values and unregister warning","retrievedAt":"2026-10-07T23:11:45Z","kind":"vendor"},{"url":"https://github.com/react-hook-form/documentation/blob/master/src/content/docs/useform/handlesubmit.mdx","locator":"Disabled fields, exceptions, server errors and transformed output","retrievedAt":"2026-10-07T23:11:45Z","kind":"vendor"},{"url":"https://github.com/react-hook-form/documentation/blob/master/src/content/docs/useformstate.mdx","locator":"Subscriptions, Proxy reads and default-value comparisons","retrievedAt":"2026-10-07T23:12:11Z","kind":"vendor"},{"url":"https://github.com/react-hook-form/documentation/blob/master/src/content/docs/usefieldarray.mdx","locator":"Array update remount behavior and complete row data","retrievedAt":"2026-10-07T23:12:11Z","kind":"vendor"},{"url":"https://tanstack.com/form/latest/docs/overview","locator":"Headless state/validation with React adapter","retrievedAt":"2026-10-07T23:11:19Z","kind":"vendor"},{"url":"https://tanstack.com/form/latest/docs/framework/react/guides/submission-handling","locator":"Standard Schema input versus transformed output","retrievedAt":"2026-10-07T23:12:22Z","kind":"vendor"}],"document":{"version":1,"references":[{"url":"https://github.com/react-hook-form/react-hook-form/blob/master/LICENSE","locator":"MIT conditions","retrievedAt":"2026-10-07T23:12:01Z","id":"license","title":"React Hook Form license","kind":"vendor"},{"url":"https://github.com/react-hook-form/react-hook-form/blob/master/README.md","locator":"Native inputs, register/handleSubmit and schema integrations","retrievedAt":"2026-10-07T23:11:30Z","id":"readme","title":"React Hook Form overview","kind":"vendor"},{"url":"https://github.com/react-hook-form/documentation/blob/master/src/content/docs/usecontroller/controller.mdx","locator":"Controlled component events/ref/default values and unregister warning","retrievedAt":"2026-10-07T23:11:45Z","id":"controller","title":"Controller documentation source","kind":"vendor"},{"url":"https://github.com/react-hook-form/documentation/blob/master/src/content/docs/useform/handlesubmit.mdx","locator":"Disabled fields, exceptions, server errors and transformed output","retrievedAt":"2026-10-07T23:11:45Z","id":"submit","title":"handleSubmit documentation source","kind":"vendor"},{"url":"https://github.com/react-hook-form/documentation/blob/master/src/content/docs/useformstate.mdx","locator":"Subscriptions, Proxy reads and default-value comparisons","retrievedAt":"2026-10-07T23:12:11Z","id":"state","title":"useFormState documentation source","kind":"vendor"},{"url":"https://github.com/react-hook-form/documentation/blob/master/src/content/docs/usefieldarray.mdx","locator":"Array update remount behavior and complete row data","retrievedAt":"2026-10-07T23:12:11Z","id":"arrays","title":"useFieldArray documentation source","kind":"vendor"},{"url":"https://tanstack.com/form/latest/docs/overview","locator":"Headless state/validation with React adapter","retrievedAt":"2026-10-07T23:11:19Z","id":"tanstack","title":"TanStack Form overview","kind":"vendor"},{"url":"https://tanstack.com/form/latest/docs/framework/react/guides/submission-handling","locator":"Standard Schema input versus transformed output","retrievedAt":"2026-10-07T23:12:22Z","id":"tanstack-submit","title":"TanStack Form submission","kind":"vendor"}],"overviewCitations":["readme","controller","submit"],"licenseCitations":["license"],"sections":[{"id":"workflow","heading":"Registering fields and integrating UI controls","paragraphs":[{"id":"workflow-detail","content":[{"text":"The basic hook returns input registration, submission handling and validation state. Native inputs can use registration directly, while Controller adapts external controlled components whose value and event properties differ. Its render function provides change, blur, value, name and ref information. Generated component wrappers must preserve those connections rather than only copy the visible input markup."}],"citations":["readme","controller"]}]},{"id":"defaults","heading":"Controlled values and field lifecycle","paragraphs":[{"id":"defaults-detail","content":[{"text":"Controller requires a defined default value or form-level defaults, and its change callback should not receive undefined as a cleared value. The documentation recommends an appropriate empty or null value instead. It also warns against unregister-on-unmount behavior with field arrays because reordering can trigger unmount/remount cycles. These are data-lifecycle decisions, not just cosmetic rendering options."}],"citations":["controller"]}]},{"id":"submit","heading":"Submission results and server failures","paragraphs":[{"id":"submit-detail","content":[{"text":"handleSubmit invokes the success callback after validation, but it does not silently consume exceptions from an asynchronous submission callback. The documentation recommends handling those failures and registering server errors when appropriate. Disabled inputs also do not behave like ordinary retained values. Consequently, a valid-looking form or a completed callback should not be confused with confirmed persistence by an external service."}],"citations":["submit"]}]},{"id":"transforms","heading":"Input types can differ from submitted output","paragraphs":[{"id":"transforms-detail","content":[{"text":"A resolver may transform the validated input before the submit callback receives it. The documentation describes a separate transformed-values generic for that output shape. This matters for schemas that normalize strings or produce new fields: a type annotation based only on input fields can misdescribe the callback payload. The behavior should be checked when moving from a form library that leaves schema transformation to the submit handler."}],"citations":["submit","tanstack-submit"]}]},{"id":"state","heading":"Subscriptions and dirty-state interpretation","paragraphs":[{"id":"state-detail","content":[{"text":"useFormState subscribes to selected state within its own scope, reducing unrelated component updates. Its Proxy-backed result requires reading the properties that should participate in the subscription. Default values supply the comparison baseline for dirty state, and field-level dirty markers do not always equal whole-form dirtiness. These distinctions help explain why a generated status indicator might not update as expected."}],"citations":["state"]}]},{"id":"arrays","heading":"Editing repeated rows","paragraphs":[{"id":"arrays-detail","content":[{"text":"useFieldArray provides operations for adding, moving, replacing and removing rows. The documented update operation remounts the affected fields, which can matter when a row contains local component state. It also expects complete row data for several operations rather than arbitrary partial objects. The library supplies array-state mechanics, while the application still determines the intended editing and validation behavior."}],"citations":["arrays"]}]},{"id":"fit","heading":"License and substitution","paragraphs":[{"id":"fit-detail","content":[{"text":"React Hook Form is MIT-licensed and can replace "},{"text":"TanStack Form","targetSlug":"tanstack-form"},{"text":" for suitable React form workflows. The field APIs, subscriptions and transformed-value handling are not interchangeable. The main documentation website was inaccessible during this research, so the cited official documentation repository supplied the detailed evidence. No installation, form migration or performance test was performed."}],"citations":["license","readme","tanstack","tanstack-submit"]}]}]},"id":"Q635","revision":683,"updatedAt":"2026-10-13T00:42:28Z","sourceUrl":"https://substitutefor.net/entities/Q635?revision=683"}}