lndsld

Home > @lndsld/react-hooks > usePrevious

usePrevious() function

Signature:

declare function usePrevious<T, I>(value: T, initialValue: I): T | I;

Parameters

Parameter Type Description
value T  
initialValue I  

Returns:

T | I