UNPKG

react-ios-pwa-prompt

Version:

A React component to prompt the user to add the app as a PWA to the home screen with native iOS styles.

12 lines (11 loc) 268 B
const a = () => ({ get: (e) => { const t = localStorage.getItem(e); return t ? JSON.parse(t) : null; }, set: (e, t) => { localStorage.setItem(e, JSON.stringify(t)); }, remove: (e) => { localStorage.removeItem(e); } }); export { a as useLocalStorageObject };