Skip to content
This repository has been archived by the owner on Apr 6, 2023. It is now read-only.

Latest commit

 

History

History
22 lines (15 loc) · 524 Bytes

File metadata and controls

22 lines (15 loc) · 524 Bytes
toc

useState

This example showcase the useState composable, an SSR-friendly ref replacement.

Its value will be preserved after server-side rendering and shared across all components using a unique key.

::alert{type=info icon=👉} Learn more about useState. ::

::ReadMore{link="/api/composables/use-state"} ::

::ReadMore{link="/getting-started/state-management"} ::

::sandbox{repo="nuxt/framework" branch="main" dir="examples/composables/use-state" file="app.vue"} ::