mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-27 08:02:01 +00:00
14 lines
355 B
Markdown
14 lines
355 B
Markdown
|
---
|
||
|
template: Example
|
||
|
---
|
||
|
|
||
|
# useCookie
|
||
|
|
||
|
This example shows how to use the `useCookie` API to persist small amounts of data that both client-side and server-side can use.
|
||
|
|
||
|
::alert{type=info icon=👉}
|
||
|
Learn more about [useCookie](/docs/usage/cookies).
|
||
|
::
|
||
|
|
||
|
::sandbox{repo="nuxt/framework" branch="main" dir="examples/composables/use-cookie" file="app.vue"}
|