render: h => h(App)
// ES5
(function (h) {
return h(App);
});
// ES6
h => h(App);
// JS
render: function (createElement) {
return createElement(
'h' + this.level, // tag name 標(biāo)簽名稱
this.$slots.default // 子組件中的陣列
)
}