Skip to content

Commit f634c9b

Browse files
Add a comment about not importing defineExpose (vuejs#2140)
1 parent d880833 commit f634c9b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/guide/essentials/template-refs.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,7 @@ import { ref } from 'vue'
227227
const a = 1
228228
const b = ref(2)
229229
230+
// Compiler macros, such as defineExpose, don't need to be imported
230231
defineExpose({
231232
a,
232233
b

0 commit comments

Comments
 (0)