@mdxh/vue-pinia
v0.1.0
Published
Install Pinia to vue3 using dxh wrapper
Downloads
1
Readme
@dxh/vue-pinia
Install Pinia to vue3 using dxh wrapper
Uses
Installation
Just use the below command to install Pinia.
npm i @mdxh/vue-pinia@latest
Create a pinia instance
Create a pinia instance (the root store) and pass it to the app as a 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')
Start your project
npm run dev
Pinia Documentation
See Pinia Documentation.