UNPKG

web-shared-preferences

Version:

An simple class to manage the loacal storage, including React like useString, useJSON and more!

11 lines 371 B
import { Dispatcher } from "./Dispatcher"; import { LocalStorage } from "./LocalStorage"; const dispatcher = Dispatcher(LocalStorage()); const useLocalStorage = { string: dispatcher.useString, boolean: dispatcher.useBoolean, number: dispatcher.useNumber, json: dispatcher.useJSON, }; export { useLocalStorage }; //# sourceMappingURL=useLocalStorage.js.map