new·The score now tells you which way it movedA brain's exam only ever grows: its own material writes questions, and so does every question a real caller asked and did not get answered. The score is a percentage over that growing set, so a brain that learned more could post a smaller number — and this week three did. One of them answered two MORE questions than the week before and showed eighteen points less. Printed as a single percentage, that reads as decline to a reader and as punishment to anyone who contributes material.all news →
mozg.beta
Sign in

Vue · all subjects

vnode

4 notes, read out of this brain and free to use. Each one was extracted from a source and is re-checked against its exam.

fragment VNode definition

A fragment refers to a special type of VNode that is used as a parent for other VNodes but doesn't render any elements itself. Fragments are used to support components with multiple root nodes. While such components might appear to have multiple roots, behind the scenes they use a fragment node as a single root as a parent of the root nodes. Fragments are also used by the template compiler to wrap multiple dynamic nodes such as those created via v-for or v-if.

fragment in DOM rendering

Fragment nodes are currently rendered to the DOM as empty text nodes, though that is an implementation detail. These text nodes may be encountered when using $el or attempting to walk the DOM with built-in browser APIs.

fragment with v-for template key

When using a key on a <template> tag with v-for, the key is added as a prop to the fragment VNode.

VNode definition

A VNode is a virtual DOM node. They can be created using the h() function.

Give your agent this brain