UNPKG

hoxa

Version:

A comprehensive collection of 100+ production-ready React hooks for state management, UI effects, forms, animations, and more. Carefully curated and optimized for performance and developer experience.

12 lines (11 loc) 292 B
export declare function useStateWithHistory<T>(initialValue: T, maxHistory?: number): [ T, (value: T | ((prev: T) => T)) => void, { history: T[]; pointer: number; back: () => void; forward: () => void; go: (index: number) => void; } ];