@zero-dependency/reactFunctionsusePrevioususePrevious CallableusePrevious<T>(value: T): T | undefinedA hook that returns a ref that always contains the previous value.Type parametersTParametersvalue: TThe value to store in a ref.Returns T | undefined
A hook that returns a ref that always contains the previous value.