UNPKG

@safe-global/safe-react-hooks

Version:

A collection of React Hooks that facilitates the interaction of React apps with Safe Smart Accounts

7 lines (6 loc) 233 B
/** * Hook to get the previous value of a given variable. * @param value Value to get the previous value from. * @returns Previous value of the given variable. */ export declare function usePrevious<T>(value?: T): T | undefined;