console.log(Vue);
const temp1 = Vue.extend({
render(h) {
return h('div', [temp2]);
}
});
const temp2 = Vue.extend({
render(h) {
return h('div', {created() {console.log(321321)}}, '文本');
}
});
const intance = new Vue({
render: h => h(temp1)
})$mount('#app');
<div id="app"></div>