Hooks: add useStorage hook #2773
Labels
Type: Enhancement
Issue contains an enhancement related to a specific component. Additional functionality has been add
Milestone
I'm submitting a ... (check one with "x")
Expected behavior
need a re-usable hook that can be a drop in replacement for
useState
that can store either insession
orlocal
storage. For example..Use State:
Would be able to be switched to browser
localStorage
with 1 line drop in change where you give it thekey
where you want it to be stored.Local Storage:
SessionsStorage:
The text was updated successfully, but these errors were encountered: