Instrcutions:Pinia is substitute of Vuex,
pinia-plugin-persistedstate is local storage plugin
1:To path below project of src create vue3
start vue3 project:
npm create vue@latest
npm install / npm run dev
Pinia-pinia-plugin-persistedstate
1.install pinia
input the :npm install pinia
2.install pinia-plugin-persistedstate
npm i pinia-plugin-persistedstate
3.invert pinia and pinia-plugin-persistedstate methods at main.js is follows
3.pinia and pinia-plugin-persistedstate use at current components follows
End:Please note that can operation pinia plugin in the vue2