Skip to content

Commit 69dfe80

Browse files
committed
update one more function component slots syntax example
1 parent 93a946a commit 69dfe80

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/guide/render-function.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ You may wonder why we need both `slots` and `children`. Wouldn't `slots.default`
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)