Learn Vuex in 30 minutes | Vuex tutorial | Vue.js State management tutorial

แชร์
ฝัง
  • เผยแพร่เมื่อ 20 ก.ย. 2024

ความคิดเห็น • 61

  • @QiroLab
    @QiroLab  3 ปีที่แล้ว +4

    In this Vuex tutorial, I have shown an example of a simple TODO app in Vue.js 2 and Vuex 3. This example also works with Vue3 and Vuex 4 as well. You just need to make few small following changes.
    Timestamps:
    00:00 Introduction
    00:37 What is Vuex?
    00:58 Why we need Vuex in the Vue.js project?
    02:24 Compare with Vue.js 2 Options API instance and Vuex 3 Instance
    Update:
    In Vue.js 3 Option API
    ```
    import { createApp } from 'vue'
    createApp({
    data() {},
    methods: {},
    computed: {},
    })
    app.mount('#app')
    ```
    In Vuex 4:
    ```
    import { createStore } from "vuex"
    const store = createStore({
    state:{},
    getters: {},
    mutations: {},
    actions: {}
    })
    ```
    04:47 Create Vue.js App
    05:41 Install Vuex Library
    06:09 Create Vuex Store
    Now here, to create Vuex 4 Store in Vue.js 3, replace it with this snippet:
    ```
    import { createStore } from "vuex"
    const store = createStore({
    state:{},
    getters: {},
    mutations: {},
    actions: {}
    })
    export default store
    ```
    And in the `main.js` use this snippet:
    ```
    import { createApp } from 'vue'
    import App from './App.vue'
    import store from "./store/store"
    const app = createApp(App)
    app.use(store)
    app.mount('#app')
    ```
    07:31 Create an Example of a simple TODO list

  • @QiroLab
    @QiroLab  3 ปีที่แล้ว

    *Don't get left behind! Download JavaScript: ES2015 to ES2023 - eBook and become a JavaScript pro!*
    👉 qirolab.gumroad.com/l/javascript-from-es2015-to-es2023

  • @JeffDZ40
    @JeffDZ40 4 ปีที่แล้ว +6

    3:36 minutes in and i have to tell you that your comparison between the Vuejs and Vuex instances unlocked a new door for me. I'm excited to go through the playlist. Well done, my friend!

    • @QiroLab
      @QiroLab  4 ปีที่แล้ว +1

      Thank You

    • @Mr.science007
      @Mr.science007 3 ปีที่แล้ว +1

      stopped the video at 2:13 just to give it a like. already knew it was gonna be good!

  • @solaoladejo7421
    @solaoladejo7421 4 ปีที่แล้ว +1

    Please consider yourself a hero. You are too much!!! You have dealt with state management in Vuejs decisively, congratulations.

  • @stojankukrika7242
    @stojankukrika7242 4 ปีที่แล้ว +3

    Awesome tutorial! Easy and show what we need to know :) Thank you a loot!

  • @soga77
    @soga77 4 ปีที่แล้ว +2

    Straight to the point very well done thank you

  • @adam192021
    @adam192021 4 ปีที่แล้ว +2

    The BEST as always!!

  • @sngari
    @sngari 4 ปีที่แล้ว

    Straight to the point. Just what i needed.

  • @anikkhan556
    @anikkhan556 2 ปีที่แล้ว

    Bravo, your explanation is just awesome. Now i feel more confident about to use vuex. Thank you so much for being so awesome.

  • @Tubee1234
    @Tubee1234 2 ปีที่แล้ว

    This tutorial helps me understand Vuex better, especially when you compare Vuex with normal Vue methods, thank you

    • @QiroLab
      @QiroLab  2 ปีที่แล้ว

      Glad to hear that!

  • @mehulsharma8608
    @mehulsharma8608 5 หลายเดือนก่อน

    Very useful video, Love it Thanks :)

    • @QiroLab
      @QiroLab  5 หลายเดือนก่อน

      Glad to hear that!

  • @emmanuellangat7558
    @emmanuellangat7558 ปีที่แล้ว

    Great tutorial, now I can start using state management in all my applications
    👏

    • @QiroLab
      @QiroLab  8 หลายเดือนก่อน

      Thank you! Cheers!

  • @saikatjaman2004
    @saikatjaman2004 4 ปีที่แล้ว +1

    it was great to Vuex understanding

  • @monikab9943
    @monikab9943 4 ปีที่แล้ว +1

    Very useful video! Thank you😊

    • @QiroLab
      @QiroLab  3 ปีที่แล้ว

      You're welcome 😊

  • @vikassharma5800
    @vikassharma5800 2 ปีที่แล้ว

    wow
    I am really grateful that i found this.
    thank you for this.🙏

    • @QiroLab
      @QiroLab  2 ปีที่แล้ว

      So glad!

  • @jonice4229
    @jonice4229 4 ปีที่แล้ว +3

    Awesome, what do you think about a course on udemy or something from scratch by doing real example blog with dashboard? Have a nice day.

    • @QiroLab
      @QiroLab  4 ปีที่แล้ว

      Sure, I will create tutorial on that also.

  • @omarimai7428
    @omarimai7428 2 ปีที่แล้ว

    Amazing tutorial , thanks !

  • @xuexiazhou404
    @xuexiazhou404 3 ปีที่แล้ว

    I followed your code to do my project, it showed me "todo. title" is undefined. do you know how to fix it.

  • @KamalKhan-bc8lz
    @KamalKhan-bc8lz 4 ปีที่แล้ว

    If there is more than like, subscribe i would do that. It's totally outstanding among other vuex tutorial on TH-cam! Thank You brother. Carry on pls

  • @pimenvibritania8590
    @pimenvibritania8590 3 ปีที่แล้ว

    Very clear! thank you!!

    • @QiroLab
      @QiroLab  3 ปีที่แล้ว

      So glad!

  • @genesdada7045
    @genesdada7045 3 ปีที่แล้ว +1

    I don't know how much i can pay you for your great investment in helping us understand freely these knowledge, was kinda confused in transiting from vuex2 to 3.God bless u so much. Asante Sana.

    • @QiroLab
      @QiroLab  3 ปีที่แล้ว

      Great to hear!

  • @tinaanit2965
    @tinaanit2965 3 ปีที่แล้ว

    25:50 mapSpate, mapGetters, mapActions

  • @NellyMoseki
    @NellyMoseki 3 ปีที่แล้ว +1

    So clear and easy to follow and understand. Thank you!

    • @QiroLab
      @QiroLab  3 ปีที่แล้ว

      Glad to hear that

  • @drkhan1983
    @drkhan1983 3 ปีที่แล้ว

    Awesome and Very nice explanation...

    • @QiroLab
      @QiroLab  3 ปีที่แล้ว

      Thanks a lot

  • @UmarAshfaq1
    @UmarAshfaq1 2 ปีที่แล้ว

    very NYC tutorial for Bigners

  • @tampantapipemalu6448
    @tampantapipemalu6448 4 ปีที่แล้ว

    very nice to share, love it

    • @QiroLab
      @QiroLab  3 ปีที่แล้ว

      Thank you! Cheers!

  • @bobbiechannel864
    @bobbiechannel864 4 ปีที่แล้ว +1

    thank you for this tutorial

    • @QiroLab
      @QiroLab  4 ปีที่แล้ว

      You're welcome 😊

  • @teodordimitrov7062
    @teodordimitrov7062 4 ปีที่แล้ว

    Very useful tutorial. Thanks for sharing it with us

    • @QiroLab
      @QiroLab  4 ปีที่แล้ว +1

      Glad it was helpful!

  • @tinaanit2965
    @tinaanit2965 3 ปีที่แล้ว

    Hello friend, what is the terminal where you work?

    • @QiroLab
      @QiroLab  3 ปีที่แล้ว +2

      I am using ZSH with oh-my-zsh on my terminal. I have already created a video on this. You should watch that video also:
      th-cam.com/video/ANxLmiLXtFM/w-d-xo.html

  • @NegarSarani-r6k
    @NegarSarani-r6k 8 หลายเดือนก่อน

    wow thank you so much

    • @QiroLab
      @QiroLab  8 หลายเดือนก่อน

      Glad you like it!

  • @muhammadmudassirsiddiqui3030
    @muhammadmudassirsiddiqui3030 3 ปีที่แล้ว

    Great bro💕❤

    • @QiroLab
      @QiroLab  3 ปีที่แล้ว +1

      Thank you so much 😀

  • @jumbo999614
    @jumbo999614 3 ปีที่แล้ว

    I'm using Vue 3. Does the code in this tutorial series work with Vue 3?

    • @QiroLab
      @QiroLab  3 ปีที่แล้ว +1

      Yes, this code is valid for Vue 3 as well. All the Vue2 code is valid in Vue 3, But there some deprecated syntax that you can learn in this video:
      th-cam.com/video/FXsWed7Nc2o/w-d-xo.html
      I also recommend you to watch the complete Vue 3 Tutorial series as well. Here is the playlist:
      th-cam.com/play/PL1TrjkMQ8UbWg8f8EpkpZntxdQldkBipE.html

    • @jumbo999614
      @jumbo999614 3 ปีที่แล้ว

      @@QiroLab Thank you for replying. I installed Vue extension for chrome. But when I inspect it, the vue tab shows only the elements of the page. There is no vuex tab. Why is that?
      Right now I'm using Vue 3.0.0.0 with Vuex 4.0.0.0

  • @kirindev
    @kirindev 4 ปีที่แล้ว

    thank you very much.

  • @samuelhamonangan7185
    @samuelhamonangan7185 4 ปีที่แล้ว

    Very good tutorial

    • @QiroLab
      @QiroLab  3 ปีที่แล้ว +1

      Thank you! Cheers!

  • @mahinhossain2317
    @mahinhossain2317 2 ปีที่แล้ว

    Tnx

  • @kid_rz
    @kid_rz 4 ปีที่แล้ว

    insane. thanks sir.

    • @QiroLab
      @QiroLab  4 ปีที่แล้ว +1

      You're welcome

  • @shupesmerga4694
    @shupesmerga4694 4 ปีที่แล้ว +1

    syntax-wise very good but you gotta improve in your teaching style. Do-as-I-do is not teaching.

    • @QiroLab
      @QiroLab  4 ปีที่แล้ว +5

      Thank you for your feedback. I am working hard to improve my teaching style. Please watch my recent videos and give your feedback, how much I improved? Thank you.

    • @NuhAleph
      @NuhAleph 4 ปีที่แล้ว

      Why don't you start your own channel? I'm sure some of your frnds very excited abt this idea