Hex Core JS
    Preparing search index...

    Function useInternalValue

    • Manages an internal value that is semi-independent of a value from a form and keeps the two values in sync with each other.

      This is a more general version of useInputValueTranslation, which focuses on translating types/formats for a single input, while this function can work with multiple input fields or non-string input values.

      Type Parameters

      • E
      • I

      Parameters

      Returns {
          internalValue: I;
          onBlur: () => void;
          setValues: (internalValue: SetStateAction<I>) => void;
      }