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

App.svelte

14 lines378 Bytes

1<script lang="ts">
2 import Increment from './Increment.svelte'
3 import Display from './Display.svelte'
4</script>
5​
6<h1>How many of your friends like cats or dogs?</h1>
7<p>
8 Press one of the buttons to add a counter of how many of your friends like
9 cats or dogs
10</p>
11<Increment animal="dogs" />
12<Display animal="dogs" />
13<Increment animal="cats" />
14<Display animal="cats" />