How to use the Vue 3 Composition API - Beginner VueJS 3 Tutorial

แชร์
ฝัง
  • เผยแพร่เมื่อ 27 ธ.ค. 2024

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

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

    I would be curious to see a bigger application (esp. the file structure), and how you deal with modals (do you emit results as events w/data, or relay them in store? do you open/close a modal throu actions or imperatively via some .open method?) and forms - all in the most effective way.

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

    Great Video! PS: Which font you are using in VSCode?

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

      Hi Aykut, thank you very much :) I use Operator Mono Book with ligatures. I hope that helps ;)

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

      @@grgurgrisogono656 Thanks 👍

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

    Great video!!

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

      Many thanks!

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

      @@grgurgrisogono656 please make more videos on Vue3. You explained really well. It helped in understanding. Thankyou!

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

    Great teacher out there. Thanks

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

      You're very kind, thank you for supporting our channel 🙌

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

    Hi,
    Can you please also provide an example of how to manage state while user authentication in Vue 3 ?

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

    wow Clean understanding composition api and reactive api, and fun video

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

      Thank you so much, that means a lot to me 😀

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

    React Js without jsx . Interesting. Your explanation is awesome.

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

      Thank you very much, sir. I appreciate your support 🙌

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

      @@grgurgrisogono656 So kind keep the tutorials coming

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

    Would this replace data?

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

      This simplifies the class-like syntax and focused more functional-like programming style in a single place, which is the setup function. You can still use data if you'd like, but I find it more appealing to keep things in one place with solid type safety via Typescript

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

    Thank you so much. Clear and...funny, you saved me so much time !

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

      Thanks for watching!

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

      Then my goal is achieved! Thank you for your support, Yves 🙌

  • @santiagoaguilar3706
    @santiagoaguilar3706 4 ปีที่แล้ว +14

    You’re really funny and a good explainer. Thanks for the video.

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

      That means a lot to me, thank you so much!

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

      Yeah very good explainer I agree

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

    Hi Grgur.
    It's announced that Vue.js itself supports SSR.
    How can I set compiler settings for server side rendering?

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

      Great question! I'll create a sample app and a video on Vue 3 SSR so make sure you're subscribed. Meanwhile, the compiler settings are all worked out through @vue/server-renderer, which makes it a nice and easy interface for SSR in Vue 3. More on that soon!

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

      @@grgurgrisogono656 Thank you so much Grgur.
      I subscribed your channel, so that I can get notified about your new posts.
      Can't wait for the Vue3 SSR tutorial. 🤭

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

      @@aitohideki1947 Hideki san, is this on track of what you wanted to see? twitter.com/ggrgur/status/1291025504171102208?s=20

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

    Thx, you help me a lot !

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

      Thanks for watching!

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

    Very good video, you instantly motivated me to learn v3 today! thx

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

    Sir,can i get the whole vue3 code on github?

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

    Really Good. Amazing Explanation

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

    Thanks! This is super cool!

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

    Thank you , very interesting

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

    gives below error
    error The `$listeners` is deprecated vue/no-deprecated-dollar-listeners-api
    help me in resolving

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

      Automatic inheritance of attributes is no longer happening in Vue 3. $attrs will now contain all non-prop attributes and non-emitted events without any extra work. What you really need is just v-bind="$attrs" and use $attrs to identify listeners. I hope that helps

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

    awesome !!!

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

    Hi, I'm pretty newbie in vue. Does it works as a replacement for vuex at some point?

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

      Great question. This depends on how you want to manage state. Composition API is only going to mature with time and we'll see where it takes us, but for now it's great for light state management. This will work even better with Providers. Don't worry, a video on that is coming up.
      Vuex is more robust. Vuex and composition don't have to cancel each other out. Try composition-only with a small sample project and see how it feels for you.

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

      @Rose Drone Solutions That's great feedback, thank you! I'll work on a Vuex-related content for you!

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

      @Rose Drone Solutions, In that case, you'll have to import it on a parent component and use provide and inject to reuse the same reference in a child component. Would you like to learn more about that approach?

  • @code4func-kythuatlaptrinh859
    @code4func-kythuatlaptrinh859 4 ปีที่แล้ว +3

    Zep, i like your style 👍

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

      Thanks @Code4Func! =)

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

    Use .number on the v-model

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

      You're right, that's a more appropriate way to bind numbers

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

    Wow, so amazing! LIKE👍

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

    Loved it!

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

    Nice to watch.. Would be great to have the code too, as in part 3 I have an error..computed () => ...may be something changed in between.

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

      Hi Werner, Thank you for the feedback dude! Do you have a GitHub repo link we could review? :)

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

    I subbed for more vue 3 things :D

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

    讲的很生动,通俗易懂

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

    Cool! Thank you! Little note: I feel like it could be speed up a little bit. I usually watch youtube on normal speed, but this time switched to 1.25 (but maybe that's too much)

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

      I appreciate that feedback! Thank you for helping us get better at this 😉

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

    Adim adim guzel bir ornek olmus.

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

    Thanks a lot .........

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

    awesome

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

    Dark day for Vue with this lack of direction. Great tutorial though haha

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

    let result = computed(() => num1 + num2)

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

    It's kind of sad that there's so much joy in getting basic reactivity working. ... :) That's a natural programming paradigm. Spreadsheets had it from the start. Somehow, us humans enjoy dealing with computers using an "assembly language" paradigm (do this - move that). Maybe it makes us feel superior, or it has to do with our tendency to micro manage, don't know. Reactivity at organisations could be the next frontier. Make it so!

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

    amazing video tutorials and a fanny guy :)

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

    It feels like React.

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

    个人还是很喜欢Class风格,但是this不能很好的推导类型,总是找不到一个完美的方案

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

    apparently, vuex is gonna die with these new awesome features

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

    this guy is too fanny .keep going bro

  • @im.empimp
    @im.empimp 4 ปีที่แล้ว +1

    no *CLOSED CAPTIONS* 😞👎

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

      I recognize how that can be an issue, so thank you for reporting. We are working on adding human-edited subtitles. Automated CCs are never good enough, and we can't settle with mediocrity. I appreciate your patience until we start rolling out a better CC support

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

    I'm a bit disappointed and excited. Hopefully, readability isnt an issue in Vue 3.

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

      I strongly believe Vue 3 improves readability by introducing simplicity. It may take a little bit to get used to the new patterns, but when you look back to how you used to do things, I think you'll see how life got better