Back out migration ToC, correct references to vnode shape

This commit is contained in:
Barney Carroll 2021-04-15 09:17:07 +01:00 committed by Stephan Hoyer
parent d021271be8
commit febd97aac2

View file

@ -431,20 +431,6 @@ m("div", "value", ["nested"])
}
```
If only a single text child is present on a DOM vnode, it instead sets `text` to that value.
```javascript
m("div", "value")
// Becomes roughly:
{
tag: "div",
attrs: null,
text: "",
children: undefined,
}
```
See [the vnode docs](vnodes.md) for more details on the v2.x vnode structure and how things are normalized.
*Most of the v2.x vnode properties here are omitted for brevity.*