A React hook that provides controlled input management, linking component state to a centralized form state with optimized re-renders.
// 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 getEventValue from './logic/getEventValue';
import getNullAncestorValue from './logic/getNullAncestorValue';
import isNameInFieldArray from './logic/isNameInFieldArray';
import cloneObject from './utils/cloneObject';
import get from './utils/get';
import isBoolean from './utils/isBoolean';
import isFunction from './utils/isFunction';
import isUndefined from './utils/isUndefined';
import set from './utils/set';
import { EVENTS } from './constants';
import type {
ControllerFieldState,
Field,
FieldPath,
FieldPathValue,
FieldValues,
InternalFieldName,
Ref,
UseCont
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key