Function usePrevious

  • Keep a reference to the previous value of a variable

    Type Parameters

    • Value

    Parameters

    • value: Value

      the variable to return the next time this hook is called

    Returns Value

    what the value was before the current render

Generated using TypeDoc