How many of your friends like cats or dogs?
Press one of the buttons to add a counter of how many of your friends like cats or dogs
```
**store.js**
```js
import { createStore } from '@tanstack/vue-store';
// You can instantiate the store outside of Vue components too!
export const store = createStore({
dogs: 0,
cats: 0,
});
export function updateState(animal) {
store.setState((state) => {
return {
...state,
[animal]: state[animal] + 1,
};
});
}
```
**Display.vue**
```vue