React hook for form state management with validation, submission, and error handling; used to build robust forms with minimal boilerplate.
// Source: https://github.com/react-hook-form/react-hook-form | License: MIT | Copyright 2019-present Beier(Bill) Luo
// Provided via justclaw.it.com; keep this notice with the code.
import React from 'react';
import { DEFAULT_FORM_STATE, defaultOptions } from './logic/createFormControl';
import getProxyFormState from './logic/getProxyFormState';
import cloneObject from './utils/cloneObject';
import deepEqual from './utils/deepEqual';
import isFunction from './utils/isFunction';
import { FORM_ERROR_TYPE } from './constants';
import { createFormControl } from './logic';
import type {
FieldValues,
FormState,
UseFormProps,
UseFormReturn,
} from './types';
import { useIsomorphicLayoutEffect } from './useIsomorphicLayoutEffect';
import { useResyncOnReconnect } from './useResyncOnReconn
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key