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