DEV Community

Md Wahiduzzaman Emon
Md Wahiduzzaman Emon

Posted on

2

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)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay