Why the render h function cannot use component name directly to render in Vue3.x as Vue2.x?

后端 未结 0 408
迷失自我
迷失自我 2021-01-01 19:44

In Vue2.x, the code can work;

import Vue from \'vue\';
Vue.component(\'helloworld\', {
  render(h) {
    return h(\'div\', \'this is helloworld\');
  }
});
ne         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题