Pinia
Pinia (pronounced /piːnjʌ/, or "peenya" in English) is a store library and state management framework for Vue.js. Designed primarily for building front-end web applications, it uses declarative syntax and offers its own state management API. Pinia was endorsed by the Vue.js team as a credible alternative to Vuex and is currently the official state management library for Vue. Source: e01 Encyclopedia. Licence: CC BY-SA 4.0.
Pinia (pronounced /piːnjʌ/, or "peenya" in English) is a store library and state management framework for Vue.js. Designed primarily for building front-end web applications, it uses declarative syntax and offers its own state management API. Pinia was endorsed by the Vue.js team as a credible alternative to Vuex and is currently the official state management library for Vue. import { defineStore } from 'pinia' export const useCounterStore = defineStore('counter', { state: () => ({ count: 0 }), getters: { doubleCount: state => state.count * 2 }, actions: { increment(amount) { this.count += amount } } })
Cite this
"Pinia". 1770718884. e01 Encyclopedia. CC BY-SA 4.0. https://en.wikipedia.org/w/index.php?oldid=1337593379 JSON record · API collection · BibTeX · RIS · CSL-JSON · citation policy