--- title: Quick Start id: quick-start --- The basic vue app example to get started with the TanStack vue-store. **App.vue** ```vue ``` **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 ``` `useStore` remains available as a deprecated alias to `useSelector`. **Increment.vue** ```vue ```