Skip to content

Commit a75d281

Browse files
committed
clarify why func components don't appear in devtools
1 parent e20a53f commit a75d281

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/v2/guide/render-function.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -482,9 +482,9 @@ Everything the component needs is passed through `context`, which is an object c
482482

483483
After adding `functional: true`, updating the render function of our anchored heading component would simply require adding the `context` argument, updating `this.$slots.default` to `context.children`, then updating `this.level` to `context.props.level`.
484484

485-
Since functional components are just functions, they're much cheaper to render. However, this also mean that functional components don't show up in the [Vue devtools](https://github.com/vuejs/vue-devtools) component tree.
485+
Since functional components are just functions, they're much cheaper to render. However, the lack of a persistent instance means they won't show up in the [Vue devtools](https://github.com/vuejs/vue-devtools) component tree.
486486

487-
They're also very useful as wrapper components. For example, when you need to:
487+
They're also very useful as wrapper components. For example, when you need to:
488488

489489
- Programmatically choose one of several other components to delegate to
490490
- Manipulate children, props, or data before passing them on to a child component

0 commit comments

Comments
 (0)