Pinia Setup
Installing from NPM
npm install pinia
Loading as Plugin
import { createApp } from 'vue'
import { createPinia } from 'pinia'
import App from './App.vue'
const pinia = createPinia()
const app = createApp(App)
app.use(pinia)
app.mount('#app')
Defining a Store
Using Store Composition API