Skip to content

Commit b519f63

Browse files
committed
docs: update ref attribute example
1 parent 3ebbb41 commit b519f63

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/api/built-in-special-attributes.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,9 @@
5858

5959
```vue
6060
<script setup>
61-
import { ref } from 'vue'
61+
import { useTemplateRef } from 'vue'
6262
63-
const p = ref()
63+
const pRef = useTemplateRef('p')
6464
</script>
6565
6666
<template>

0 commit comments

Comments
 (0)