Skip to content

Latest commit

 

History

History
15 lines (10 loc) · 338 Bytes

README.md

File metadata and controls

15 lines (10 loc) · 338 Bytes

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>;
};