Skip to content

Commit 981e2dc

Browse files
committed
chore: readme
1 parent 03c8998 commit 981e2dc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ If you also want to reuse a piece of template, you can provide a special `$templ
184184
}
185185
186186
createApp({
187-
ComponentLike
187+
Counter
188188
}).mount()
189189
</script>
190190

@@ -194,8 +194,8 @@ If you also want to reuse a piece of template, you can provide a special `$templ
194194
</template>
195195

196196
<!-- reuse it -->
197-
<div v-scope="ComponentLike()"></div>
198-
<div v-scope="ComponentLike()"></div>
197+
<div v-scope="Counter({ initialCount: 1 })"></div>
198+
<div v-scope="Counter({ initialCount: 2 })"></div>
199199
```
200200

201201
The `<template>` approach is recommended over inline strings because it is more efficient to clone from a native template element.

0 commit comments

Comments
 (0)