Skip to content
masterclass Buddy

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.

Subscribe
  • reactive()
  • shallowRef()
  • computed()
  • watchEffect()
  • Ref<T>

Source: Reactivity API: Core | Vue.js. Checked 2026-11-03.