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.

5 lines (4 loc) 234 B
export declare function useLocalStorageState<T>(key: string, initialValue: T | (() => T), options?: { serialize?: (value: T) => string; deserialize?: (storedValue: string) => T; }): [T, (value: T | ((prev: T) => T)) => void];