JSFiddle - React, Tailwind, and code Playground
HTML
<script src="https://gist.githack.com/sh7dm/75c8d9132b264964474aed5acb1ad264/raw/vue.global.js"></script>
JavaScript
const { createApp, createComponent, h, version, ref } = Vue
const Child = createComponent({
setup () {
let tabs = ref()
console.log(tabs)
return {}
},
template: '<div ref="tabs" >Wow</div>'
})
const Root = createComponent((props) => () => h('div', [ h('p', `Hello, ${props.name}!`), h(Child) ]))
const el = document.createElement('div')
document.body.appendChild(el)
createApp().mount(Root, el, {
name: `Vue ${version}`
})