UNPKG

@mantine/hooks

Version:

A collection of 50+ hooks for state and UI management

11 lines (8 loc) 375 B
'use client'; import { createStorage, readValue } from '../use-local-storage/create-storage.mjs'; function useSessionStorage(props) { return createStorage("sessionStorage", "use-session-storage")(props); } const readSessionStorageValue = readValue("sessionStorage"); export { readSessionStorageValue, useSessionStorage }; //# sourceMappingURL=use-session-storage.mjs.map