Vue.js · Concept
Reactivity system
ref() creates a reactive, mutable container with a .value property. Vue tracks reads and triggers effects when that value changes.
Last updated
Syntax
function ref<T>(value: T): Ref<UnwrapRef<T>>In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
reactive()shallowRef()computed()watchEffect()Ref<T>