In this video we look at Pinia a light-weight state management system perfect for Vue 3 users looking to use the Composition API. In this video we create a counter example, and I give some tips on how to use it! #vue3 #pinia
👉Check out my last video on Nuxt 3!
https://youtu.be/pIrL2Nnjvbk
👉 Sign up and get free Vue cheat sheets and updates!
https://www.vuecourse.tech
Need some mentoring, help with a project, get a career in tech, level up your skills? Check it out
👉https://mentorcruise.com/mentor/erikhanchett/
Need to Learn Vue or Nuxt? Check out my courses below!
http://bit.ly/2LalQka - Learn Nuxt.js Course!
http://bit.ly/3aiYe8s - Quick Starter On Vue 3
https://bit.ly/2OETt0M - Full 6 week course on vue!
🗂️ 🗂️ 🗂️
Make Sure To Check These Courses From Wes Bosd ! 💻
Begginer JavaScript - https://BeginnerJavaScript.com/friend/HANCHETT
React For Beginners - https://ReactForBeginners.com/friend/HANCHETT
Advanced React - https://AdvancedReact.com/friend/HANCHETT
0:00 Introduction
0:29 Setting up and Installing Pinia
02:39 Creating a store
06:04 Import store into App
07:04 Introducing storeToRefs
10:15 using $patch
12:04 using $reset
13:00 using $subscribe
13:45 Vue Dev Tools with Pinia
14:30 Using $state
Links
https://github.com/posva/pinia