File tree 1 file changed +8
-7
lines changed
1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -106,15 +106,16 @@ createElement(
106
106
},
107
107
108
108
// {String | Array}
109
- // Children VNodes. Optional.
109
+ // Children VNodes, built using createElement(),
110
+ // or simply using strings to get 'text VNodes'. Optional.
110
111
[
111
- createElement (' h1' , ' hello world' ),
112
+ ' Some text comes first.' ,
113
+ createElement (' h1' , ' A headline' ),
112
114
createElement (MyComponent, {
113
115
props: {
114
- someProp: ' foo '
116
+ someProp: ' foobar '
115
117
}
116
- }),
117
- ' bar'
118
+ })
118
119
]
119
120
)
120
121
```
@@ -166,7 +167,7 @@ One thing to note: similar to how `v-bind:class` and `v-bind:style` have special
166
167
directives: [
167
168
{
168
169
name: ' my-custom-directive' ,
169
- value: ' 2'
170
+ value: ' 2' ,
170
171
expression: ' 1 + 1' ,
171
172
arg: ' foo' ,
172
173
modifiers: {
@@ -181,7 +182,7 @@ One thing to note: similar to how `v-bind:class` and `v-bind:style` have special
181
182
},
182
183
// The name of the slot, if this component is the
183
184
// child of another component
184
- slot: ' name-of-slot'
185
+ slot: ' name-of-slot' ,
185
186
// Other special top-level properties
186
187
key: ' myKey' ,
187
188
ref: ' myRef'
You can’t perform that action at this time.
0 commit comments