Function useActualValue

Initializes a ref with the provided value and keeps it up to date.

  • Type Parameters

    • T = undefined

      The type of the value.

    Parameters

    • value: T

      The initial value.

    Returns MutableRefObject<T>

    • A reference object that contains the provided value.