diff --git a/docs/content/3.docs/1.usage/6-cookies.md b/docs/content/3.docs/1.usage/6-cookies.md index b5ae56bf89..07382e7063 100644 --- a/docs/content/3.docs/1.usage/6-cookies.md +++ b/docs/content/3.docs/1.usage/6-cookies.md @@ -1,26 +1,26 @@ # Cookies -> Nuxt provides SSR-friendly composable to read and write cookies. +Nuxt provides an SSR-friendly composable to read and write cookies. ## Usage -Within your pages, components, and plugins you can use `useCookie` to create a reactive reference bound to a specific cookie. +Within your pages, components and plugins you can use `useCookie` to create a reactive reference bound to a specific cookie. ```js const cookie = useCookie(name, options) ``` ::alert{icon=👉} -**`useCookie` only works during `setup` or `Lifecycle Hooks`** +**`useCookie` only works during `setup` or `Lifecycle Hooks`**. :: ::alert{icon=😌} -`useCookie` ref will be automatically serialize and deserialized cookie value to JSON. +`useCookie` ref will automatically serialize and deserialize cookie value to JSON. :: ## Example -The example below creates a cookie called counter and if it doesn't exist set a random value. Whenever we update `counter`, the cookie will be updated. +The example below creates a cookie called `counter`. If the cookie doesn't exist, it is initially set to a random value. Whenever we update the `counter` variable, the cookie will be updated accordingly. ```vue