useLocalStorage
The useLocalStorage hook lets you get/set a value in the local storage. More Info...
import { useLocalStorage } from '@archibald/storefront';
const [data, setData, clearData] = useLocalStorage(PARAMETERS);
Parameters
| Name | Type | Description |
|---|---|---|
| key | string | A key to be used in the local storage. |