Skip to content

React hook for listening to window.on('storage') events

License

Notifications You must be signed in to change notification settings

cvpcasada/use-storage-event

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

use-storage-event

Listens to dom 'storage' event, see MDN storage event docs

API (usage)

import useStorageEvent from 'use-storage-event';

const App = () => {
  const storageValue = useStorageEvent('storage-key');

  return <p>{storageValue}</p>;
};

About

React hook for listening to window.on('storage') events

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published