Vue 3 · Reactivity

Create reactive state

Wrap a value in ref and read or write it with .value in script.

const count = ref(0);
count.value++;

Official Vue 3 documentation

More reactivity commands

All reactivity commands · Vue 3 cheatsheet

Was this page helpful?