Question: How I use Vue.$compile to compile function in Vue3 runtime? I use the function in Vue2. For example:
Vue.compile('<custom-component />');
Question: How I use Vue.$compile to compile function in Vue3 runtime? I use the function in Vue2. For example:
Vue.compile('<custom-component />');
import {compile} from "vue"
compile('<custom-component />')
that's all, almost the same!
Then you can do
render() {
return h(compile('<custom-component />'))
}