下面两个图片展示了函数式组件的vNode形式及挂载的实现,通俗易懂。
其中,h(MyFunctionalComponent) 得到:
{ tag: MyFunctionalComponent }
就是这么简单。