サクサク読めて、アプリ限定の機能も多数!
トップへ戻る
Pixel 9
pinia.vuejs.org
The state is, most of the time, the central part of your store. People often start by defining the state that represents their app. In Pinia the state is defined as a function that returns the initial state. This allows Pinia to work in both Server and Client Side. jsimport { defineStore } from 'pinia' export const useStore = defineStore('storeId', { // arrow function recommended for full type inf
💡 IntuitiveStores are as familiar as components. API designed to let you write well organized stores. 🔑 Type SafeTypes are inferred, which means stores provide you with autocompletion even in JavaScript!
このページを最初にブックマークしてみませんか?
『Pinia | The intuitive store for Vue.js』の新着エントリーを見る
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く