UNPKG

beautiful-react-hooks

Version:

A collection of beautiful (and hopefully useful) React hooks to speed-up your components and hooks development

6 lines (5 loc) 240 B
/** * Accepts a variable (possibly a prop or a state) and returns its history (changes through updates). */ declare const useValueHistory: <TValue = unknown>(value: TValue, distinct?: boolean) => TValue[]; export default useValueHistory;