diff --git a/src/api/built-in-components.md b/src/api/built-in-components.md index 1e5b1dd454..31b7c03c6b 100644 --- a/src/api/built-in-components.md +++ b/src/api/built-in-components.md @@ -62,6 +62,16 @@ import { KeepAlive, Teleport, Transition, TransitionGroup } from 'vue' Registration is not required if you pass the component itself to `is` rather than its name. +- **key:** + +When using and passing vnode of the same type, you need to provide keys: + +```html + +``` + +Otherwise, you are passing two compiled vnodes of the same type to the renderer. Because they are compiled as completely static, they will not be updated at all. + - **See also:** [Dynamic Components](../guide/component-dynamic-async.html) ## transition