The best way to control Claude Code, Codex and more from any computer or phone

main
vue 16 lines 445 Bytes
Raw
1 <script setup lang="ts">
2 // Client-hydration probe: the button only works (and only flips its
3 // data-hydrated marker) after Vue hydrates on the client.
4 const count = ref(0);
5 const hydrated = ref(false);
6 onMounted(() => {
7 hydrated.value = true;
8 });
9 </script>
10
11 <template>
12 <main>
13 <p id="count">count:{{ count }}</p>
14 <button id="increment" :data-hydrated="hydrated ? 'true' : 'false'" @click="count++">+1</button>
15 </main>
16 </template>