I am currently experimenting with the beta version of Vue 3 and encountering an issue while trying to access a ref in the setup function. Here is my component:
JS(Vue):
const Child = createComponent({
setup () {
let tabs = ref()
console.log(tabs)
return {}
},
template: '<div ref="tabs" >Wow</div>'
})
Demo: https://jsfiddle.net/xkeyLwu4/2/
However, the value of tabs.value remains undefined. Can someone point out what I might be doing wrong here?