An experimental Vue composable for TC39 signals
npm install vue-use-signal
<script setup>
import { Signal, useSignal } from 'vue-use-signal'
const counter = new Signal.State(0)
const count = useSignal(counter)
const inc = () => counter.set(counter.get() + 1)
</script>
<template>
<button type="button" @click="inc">
count is {{ count }}
</button>
</template>