UNPKG

@mirawision/reactive-hooks

Version:

A comprehensive collection of 50+ React hooks for state management, UI interactions, device APIs, async operations, drag & drop, audio/speech, and more. Full TypeScript support with SSR safety.

10 lines (9 loc) 271 B
/** * Hook that stores the previous value of a state * Useful for comparing current and previous values * * @param value - The current value to track * @returns The previous value */ declare function usePrevious<T>(value: T): T | undefined; export { usePrevious };