UNPKG

@mantine/hooks

Version:

A collection of 50+ hooks for state and UI management

11 lines (10 loc) 427 B
"use client"; import { createStorage, readValue } from "./create-storage.mjs"; //#region packages/@mantine/hooks/src/use-local-storage/use-local-storage.ts function useLocalStorage(props) { return createStorage("localStorage", "use-local-storage")(props); } const readLocalStorageValue = readValue("localStorage"); //#endregion export { readLocalStorageValue, useLocalStorage }; //# sourceMappingURL=use-local-storage.mjs.map