Learn Nuxt with a Collection of 100+ Tips!
View Tips
v3.17
  • Docs
  • Integrations
  • Resources
  • Enterprise
  • Blog
Nuxt on GitHub
  • Get Started
  • Guide
  • API
  • Examples
  • Community
  • Hello World
    • Layers
    • Error Handling
    • JSX / TSX
    • Locale
    • Module Extend Pages
    • Teleport
    • Testing
    • useCookie
    • Use Custom Fetch Composable
  1. Docs
  2. Examples
  3. Advanced

useCookie

This example shows how to use the useCookie API to persist small amounts of data that both client and server can use.
Read more in Docs > API > Composables > Use Cookie.
Loading Sandbox...
Report an issue or Edit this page on GitHub

Testing

This example shows how to test your Nuxt application.

Use Custom Fetch Composable

This example shows a convenient wrapper for the useFetch composable from nuxt. It allows you to customize the fetch request with default values and user authentication token.

Community

  • Nuxters
  • Team
  • Design Kit

Products

  • Nuxt UI Pro
  • Nuxt Studio
  • NuxtHub

Enterprise

  • Support
  • Agencies
  • Sponsors

Stay updated on new releases and features, guides, and community updates.

Nuxt on XNuxt on BlueSkyNuxt on LinkedInNuxt on DiscordNuxt on GitHub

Copyright © 2016-2025 Nuxt - MIT License