use-synced-local-storage
Custom react hook for synced local storage, listens to manual or cross-tab changes and updates accordingly
Install
npm install --save use-synced-local-storage
Usage
import React from "react";import useSyncedLocalStorage from "use-synced-local-storage"; const App = const storage setStorage = ; return <> storage <button =>click me</button> </> ;;;
License
MIT © berkeatac
This hook is created using create-react-hook.