How to use the vue-composable.useLocalStorage function in vue-composable

To help you get started, we’ve selected a few vue-composable examples, based on popular ways it is used in public projects.

github pikax / vue-composable / docs / .vuepress / components / LocalStorageExample.vue View on Github external
setup() {
    const key = "__vue_localStorage_example";
    const { storage } = useLocalStorage(key, 1);

    return {
      key,
      storage
    };
  }
};