Skip to content

Commit 86456be

Browse files
kazuponchrisvfritz
authored andcommitted
update latest render function spec (volksbright#372)
1 parent 7c9e7cc commit 86456be

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/guide/render-function.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ Vue.component('my-component', {
315315
Everything the component needs is passed through `context`, which is an object containing:
316316

317317
- `props`: An object of the provided props
318-
- `children`: A function returning the children
318+
- `children`: An array of the VNode children
319319
- `slots`: A function returning a slots object
320320
- `data`: The entire data object passed to the component
321321
- `parent`: A reference to the parent component
@@ -377,7 +377,7 @@ You may wonder why we need both `slots` and `children`. Wouldn't `slots().defaul
377377
</my-functional-component>
378378
```
379379

380-
For this component, `children()` will give you both paragraphs, `slots().default` will give you only the second, and `slots().foo` will give you only the first. Having both `children` and `slots` therefore allows you to choose whether this component knows about a slot system or perhaps delegates that responsibility to another component by simply passing along `children`.
380+
For this component, `children` will give you both paragraphs, `slots().default` will give you only the second, and `slots().foo` will give you only the first. Having both `children` and `slots` therefore allows you to choose whether this component knows about a slot system or perhaps delegates that responsibility to another component by simply passing along `children`.
381381

382382
## Template Compilation
383383

0 commit comments

Comments
 (0)