UNPKG

simple-react-ui-kits

Version:

A lightweight, customizable React UI component library built with TypeScript and Tailwind CSS

8 lines 381 B
/** * Custom hook for localStorage functionality * @param key - localStorage key * @param initialValue - Initial value if key doesn't exist * @returns [storedValue, setValue] - Current value and setter function */ export declare function useLocalStorage<T>(key: string, initialValue: T): [T, (value: T | ((val: T) => T)) => void]; //# sourceMappingURL=useLocalStorage.d.ts.map