Skip to content

Latest commit

 

History

History
6 lines (6 loc) · 575 Bytes

CHECKLIST.md

File metadata and controls

6 lines (6 loc) · 575 Bytes
  1. useLocalStorage accepts a key and uses it to set and retrieve the value in local storage
  2. useLocalStorage accepts a defaultValue used to set the value of the ref when nothing is currently set under the provided key in localStorage.
  3. The composable returns a ref called value that holds the value from localStorage
  4. The returned value updates when the related data in localStorage updates
  5. The data in localStorage should updates when the ref value updates
  6. When you type in the input in the running app, the value syncs to local storage (and vice versa)