Home > @lndsld/react-hooks > usePrevious
Get value from previous render
Signature:
declare function usePrevious<T>(value: T): T | undefined;
Parameter | Type | Description |
---|---|---|
value | T | current value |
Returns:
T | undefined
value from previous render