xet-object-viewer / src /lib /Counter.svelte
assafvayner's picture
assafvayner HF Staff
Duplicate from static-templates/svelte
9c827a9 verified
raw
history blame
167 Bytes
<script lang="ts">
let count: number = $state(0)
const increment = () => {
count += 1
}
</script>
<button onclick={increment}>
count is {count}
</button>