1

I have the following code in Vue 2

import MyComponent from './MyComponent.vue'

let ComponentClass, instance
let propsData = {}

ComponentClass = Vue.extend(component)
instance = new ComponentClass({ propsData })

instance.$mount()
document.body.appendChild(instance.$el)

console.log(
    instance.$on,
    instance.$once,
    instance.$mount
)

I need to create this instance in Vue 3

Does anyone know the equivalent in Vue 3?

OBS: I need the instance, $on and $once

0 Answers0