Skip to content

Commit 71d8860

Browse files
authored
Update composition-api-setup.md
add `toRef` to list of imported properties from `vue` package.
1 parent ee52529 commit 71d8860

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/api/composition-api-setup.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ Note that if you destructure the `props` object, the destructured variables will
6464
If you really need to destructure the props, or need to pass a prop into an external function while retaining reactivity, you can do so with the [toRefs()](./reactivity-utilities.html#torefs) and [toRef()](/api/reactivity-utilities.html#toref) utility APIs:
6565

6666
```js
67-
import { toRefs } from 'vue'
67+
import { toRefs, toRef } from 'vue'
6868

6969
export default {
7070
setup(props) {

0 commit comments

Comments
 (0)