aboutsummaryrefslogtreecommitdiff
path: root/examples/framework-multiple/src/components/VueCounter.vue
diff options
context:
space:
mode:
Diffstat (limited to 'examples/framework-multiple/src/components/VueCounter.vue')
-rw-r--r--examples/framework-multiple/src/components/VueCounter.vue8
1 files changed, 7 insertions, 1 deletions
diff --git a/examples/framework-multiple/src/components/VueCounter.vue b/examples/framework-multiple/src/components/VueCounter.vue
index bd801ca81..74820f7f0 100644
--- a/examples/framework-multiple/src/components/VueCounter.vue
+++ b/examples/framework-multiple/src/components/VueCounter.vue
@@ -1,4 +1,10 @@
<template>
+ <!--
+ Seeing type errors on the word `class`?
+ This unfortunately happens because @types/react's JSX definitions leak into every file due to being declared globally.
+ There's currently no way to prevent this when using both Vue and React with TypeScript in the same project.
+ You can read more about this issue here: https://github.com/johnsoncodehk/volar/discussions/592
+ -->
<div class="counter">
<button @click="subtract()">-</button>
<pre>{{ count }}</pre>
@@ -9,7 +15,7 @@
</div>
</template>
-<script>
+<script lang="ts">
import { ref } from 'vue';
export default {
setup() {