Using TypeScript in your Vue 3 apps

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

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

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

    Did you know we have an entire course on Vue 3 with TypeScript? Dive in here 👉 buff.ly/3d4TWCn

  • @션박-t5f
    @션박-t5f 2 ปีที่แล้ว +4

    Vue3 is an absolutely amazing and simple framework for me.

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

    I prefer to see the script above the template these days - especially when using the script set up idiom.

  • @andri_sul
    @andri_sul 2 ปีที่แล้ว +1

    How to implements auto-suggest & type safety inside template? Is it a plugin?

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

      The extension which was shown in the video should help.
      But that is the biggest disadvantage of using Vue. For example React very good at suggesting in the template part , especially if you use TS

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

    Which VS code theme is he using?

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

    For the cases where ref should be number but has no initial value just use default numeric value not null. Using null or number will give more overhead in the other parts of the code because a dev will need to check if value is not null....
    It seems logical to use number | null for the example like you showed but you will get annoyed fast with bigger projects because of the things I have just described

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

      would unknown still require a null check? 🤔

    • @yuriihusak1959
      @yuriihusak1959 2 ปีที่แล้ว +1

      @@jaymartinez311 don't think so, but there could be another problem with that. I have to check first

  • @BabyShipCodeAi
    @BabyShipCodeAi 2 ปีที่แล้ว +1

    Great!

  • @joncobb8533
    @joncobb8533 2 ปีที่แล้ว +1

    I like Vue so much better than react! Lol

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

    plz learn Vuex based on type script soon

    • @cindrmon
      @cindrmon 2 ปีที่แล้ว +1

      i think you should also learn pinia state management with composition api syntax, my friend

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

    "An app you can count on" 😂😂😂