From b0876f62fde3e08e4ac428e8e7c85d1fc54e16c7 Mon Sep 17 00:00:00 2001 From: Anish Date: Sat, 24 Jul 2021 20:45:11 +0530 Subject: [PATCH] chore: update readme --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 2abdeba..5ccd18f 100644 --- a/README.md +++ b/README.md @@ -60,11 +60,11 @@ import { useCookie } from 'vue-cookie-next' defineComponent({ setup() { - const cookie = useCookie() - cookie.setCookie('theme', 'dark') - cookie.removeCookie('hover-time') + const { setCookie, removeCookie } = useCookie() + setCookie('theme', 'dark') + removeCookie('hover-time') }, -}); +}) ``` ## API Options