瀏覽代碼

chore: comments

Evan You 6 年之前
父節點
當前提交
cc748db33b
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      packages/runtime-core/src/createRenderer.ts

+ 2 - 0
packages/runtime-core/src/createRenderer.ts

@@ -512,6 +512,8 @@ export function createRenderer<
       hostInsert(fragmentStartAnchor, container, anchor)
       hostInsert(fragmentEndAnchor, container, anchor)
       // a fragment can only have array children
+      // since they are either generated by the compiler, or implicitly created
+      // from arrays.
       mountChildren(
         n2.children as HostVNodeChildren,
         container,