UNPKG

@mantine/hooks

Version:

A collection of 50+ hooks for state and UI management

11 lines (8 loc) 340 B
'use client'; import { createStorage, readValue } from './create-storage.mjs'; function useLocalStorage(props) { return createStorage("localStorage", "use-local-storage")(props); } const readLocalStorageValue = readValue("localStorage"); export { readLocalStorageValue, useLocalStorage }; //# sourceMappingURL=use-local-storage.mjs.map