Skip to content

Commit 12dc478

Browse files
reuwisdras
authored andcommitted
chore: update ref on functional component (#2145)
* chore: update ref on functional component * revert commit * chore update ref to functional component
1 parent 8044ea9 commit 12dc478

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/v2/guide/render-function.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -523,6 +523,8 @@ Vue.component('my-component', {
523523
```
524524

525525
> Note: in versions before 2.3.0, the `props` option is required if you wish to accept props in a functional component. In 2.3.0+ you can omit the `props` option and all attributes found on the component node will be implicitly extracted as props.
526+
>
527+
> The reference will be HTMLElement when used with functional components because they’re stateless and instanceless.
526528
527529
In 2.5.0+, if you are using [single-file components](single-file-components.html), template-based functional components can be declared with:
528530

0 commit comments

Comments
 (0)