<script setup>
import Increment from './Increment.vue'
import Display from './Display.vue'
</script>
<template>
<h1>How many of your friends like cats or dogs?</h1>
<p>
Press one of the buttons to add a counter of how many of your friends like
cats or dogs
</p>
<Increment animal="dogs" />
<Display animal="dogs" />
<Increment animal="cats" />
<Display animal="cats" />
</template>
<script setup>
import Increment from './Increment.vue'
import Display from './Display.vue'
</script>
<template>
<h1>How many of your friends like cats or dogs?</h1>
<p>
Press one of the buttons to add a counter of how many of your friends like
cats or dogs
</p>
<Increment animal="dogs" />
<Display animal="dogs" />
<Increment animal="cats" />
<Display animal="cats" />
</template>
Your weekly dose of JavaScript news. Delivered every Monday to over 100,000 devs, for free.