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

Поделиться
HTML-код
  • Опубликовано: 20 сен 2024

Комментарии • 80

  • @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 3 года назад

      Yeah very good explainer I agree

  • @presida3927
    @presida3927 4 года назад +4

    Great teacher out there. Thanks

    • @grgurgrisogono656
      @grgurgrisogono656 4 года назад

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

  • @munapadhi8723
    @munapadhi8723 3 года назад +2

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

  • @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

  • @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.

  • @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 🙌

  • @MrBiggydicks
    @MrBiggydicks 4 года назад +1

    Keep up the Vue 3 stuff. I'm sure I'll be needing it 👍

    • @Moduscreate
      @Moduscreate  4 года назад +1

      Will do! Thank you for subscribing to our channel 🤓

    • @MrBiggydicks
      @MrBiggydicks 4 года назад

      Modus Create, Inc. sure thing man. We have to support people like you on here as much as possible because I’m not sure I could do the job I love without you and those like you.

  • @aitcomputer8397
    @aitcomputer8397 3 года назад +1

    Really Good. Amazing Explanation

  • @ecoseodeutschland9864
    @ecoseodeutschland9864 3 года назад

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

  • @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!

  • @adrihm8165
    @adrihm8165 4 года назад +4

    Thank you , very interesting

  • @aleksandrippatev1268
    @aleksandrippatev1268 4 года назад +2

    Wow, so amazing! LIKE👍

  • @maskman4821
    @maskman4821 4 года назад +1

    awesome !!!

  • @4BeerLife
    @4BeerLife 4 года назад +1

    Thx, you help me a lot !

  • @shortsoflifeofficial
    @shortsoflifeofficial 4 года назад +1

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

  • @code4func-kythuatlaptrinh859
    @code4func-kythuatlaptrinh859 4 года назад +3

    Zep, i like your style 👍

  • @rchin75
    @rchin75 4 года назад +2

    Thanks! This is super cool!

  • @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 👍

  • @ben790924
    @ben790924 4 года назад +5

    I subbed for more vue 3 things :D

  • @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? :)

  • @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 😉

  • @saikun0293
    @saikun0293 3 года назад

    Loved it!

  • @rangabharath4253
    @rangabharath4253 3 года назад +1

    awesome

  • @sathyanirmanifernando
    @sathyanirmanifernando 3 года назад

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

  • @agriboz
    @agriboz 4 года назад +1

    Adim adim guzel bir ornek olmus.

  • @fszhao8064
    @fszhao8064 4 года назад

    讲的很生动,通俗易懂

  • @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

  • @gpalmadev
    @gpalmadev Год назад

    amazing video tutorials and a fanny guy :)

  • @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

  • @baseerx
    @baseerx 4 года назад

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

  • @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

  • @jctapuk
    @jctapuk 3 года назад

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

  • @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?

  • @rickyj1
    @rickyj1 4 года назад +1

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

  • @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!

  • @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

  • @guillercelestino801
    @guillercelestino801 3 года назад +1

    It feels like React.

  • @fszhao8064
    @fszhao8064 4 года назад

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

  • @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

  • @zerefdev
    @zerefdev 4 года назад

    apparently, vuex is gonna die with these new awesome features

  • @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