DEV Community

Md Wahiduzzaman Emon
Md Wahiduzzaman Emon

Posted on

Browser Storage Hook React

import this ->
import { useLocalStorage,useSessionStorage } from 'browser_storage_hook_react';

uses ->
const [value, setValue] = useLocalStorage('key', 'defaultValue');
const [value, setValue] = useSessionStorage('key', 'defaultValue');

browser_storage_hook_react - npm

React hook for localStorage and SessionStorage and Cookie. Latest version: 1.0.2, last published: a year ago. Start using browser_storage_hook_react in your project by running `npm i browser_storage_hook_react`. There are no other projects in the npm registry using browser_storage_hook_react.

favicon npmjs.com

Top comments (0)