Skip to content
Source
Sign inSign up
TanStack/store
Open History to see the last commit

Increment.svelte

7 lines208 Bytes

1<script lang="ts">
2 import { updateState } from './store'
3​
4 const { animal }: { animal: 'cats' | 'dogs' } = $props()
5</script>
6​
7<button onclick={() => updateState(animal)}>My Friend Likes {animal}</button>