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.

10 lines (9 loc) 246 B
export declare function useUndoRedo<T>(initialValue: T, maxHistory?: number): { current: T; set: (value: T) => void; undo: () => void; redo: () => void; clearHistory: () => void; canUndo: boolean; canRedo: boolean; };