import { reactive, watch } from 'vue' const obj = reactive({ name:`demo` }) watch(() => obj.name, (newName) => { console.log(newName) })
import { reactive, watch } from 'vue' const obj = reactive({ name:`demo` }) watch(() => obj.name, (newName) => { console.log(newName) })