Vue 3 Composition API Tutorial #2 - Data, Refs & Reactive Objects

Поділитися
Вставка
  • Опубліковано 3 гру 2024

КОМЕНТАРІ • 20

  • @MakeAppswithDanny
    @MakeAppswithDanny  2 роки тому +1

    Please Like, Share, Subscribe & Comment - it all helps me create more content!
    👉 Vue 3 Composition API Course: dannys.link/compositionapi
    👉 My Courses: dannys.link/courses

  • @oohkumar
    @oohkumar 9 місяців тому +1

    Thanks Danny. You got me out of a code hole. Very easy to understand lesson.

  • @thiagopetherson1268
    @thiagopetherson1268 Рік тому +1

    I'm from Brazil. I'd like to thank you for the video.
    It is helping me a lot.

  • @bettyhsu3483
    @bettyhsu3483 Рік тому +1

    Hello, the video is very helpful to clarify the different coding style.

  • @rodrigocolquegarcia1025
    @rodrigocolquegarcia1025 Рік тому +1

    Excelente explicación Make

  • @lecheynata
    @lecheynata 2 роки тому +1

    Awesome Danny i really appreciate the short and explanatory videos.

  • @amerrashed6287
    @amerrashed6287 2 роки тому +2

    Well done Danny. I'm testing pinia with composition api & the new setup method. Combining all together, now It's far better & less complex than vuex . Thinking seriously of changing my vue projects written in vuex !!

    • @MakeAppswithDanny
      @MakeAppswithDanny  2 роки тому +1

      It’s sooo much better and less verbose than Vuex. When I get back on Fudget, I’ll be converting all my Composables-based state management over to Pinia.

  • @arslonbekroziboyev5683
    @arslonbekroziboyev5683 2 роки тому +2

    That is great!!!

  • @AdnanErlansyah-nx7xp
    @AdnanErlansyah-nx7xp Рік тому +1

    Sir, what's difference of ref and reactive

    • @MakeAppswithDanny
      @MakeAppswithDanny  Рік тому +1

      Reactive is only for objects, and you don't need to use .value. Ref can be used for any data type, but you need to use the .value.

  • @junjunghasudungan1905
    @junjunghasudungan1905 Рік тому +1

    helo sir, your video very helpfully like me as junior / new with vue
    may i have simple question, ref just can get primitive data type, and reactive to catch object, it's correct or not, sir?
    thank for your attention..

    • @MakeAppswithDanny
      @MakeAppswithDanny  Рік тому +1

      In theory, you could set a ref to an object, but it would be a bit messy, e.g:
      const myObj = ref({
      person: {
      age: 27
      }
      })
      let personAge = myObj.value.person.age
      So it's better to use reactive objects, really, when you need an object.

    • @junjunghasudungan1905
      @junjunghasudungan1905 Рік тому

      @@MakeAppswithDanny thank for detail explain 🙏