@motherbrainn/use-local-storage
v1.1.27
Published
A lightweight hook for client side apps that makes storing and modifying data in local storage as easy as setting state.
Downloads
32
Readme
use-local-storage
A lightweight hook for client side apps that makes storing and modifying data in local storage as easy as setting state.
Install
npm install @motherbrainn/use-local-storage
How To Use
import { useLocalStorage } from "@motherbrainn/use-local-storage";
const [localStorageValue, localStorageSetterFunction] = useLocalStorage(key, value);