Aryan

Results 1 comments of Aryan

use custom wrapper for useSafeLocalStorage const useSafeLocalStorage = (key, initialValue) => { const [value, setValueRaw] = useLocalStorage(key, initialValue); const setValue = (updater) => { if (typeof updater === 'function') {...