vuejs official website tutorial:
ide/render-function.html-sharp%E7%BA%A6%E6%9D%9F" rel=" nofollow noreferrer "> VNodes must be unique
All VNodes in thecomponent tree must be unique. This means that the following render function is invalid:
render: function (createElement) { var myParagraphVNode = createElement("p", "hi") return createElement("div", [ // - VNodes myParagraphVNode, myParagraphVNode ]) }
but the result of my test is that the above code is OK. The test address is as follows:
https://codepen.io/quiettroja.
running result is normal:
Why is it inconsistent with the conclusion of the official website?