BTW, the reason they picked Rurouni Kenshin is because that anime is getting a remake that is slated to be released very soon. Just a bit of trivia for you folks from a die hard of the original when I was a kid.
@allan_archie
Жыл бұрын
Hold on, I've been using typesafety in Nuxt3 for a while now... You mean it's not always been there? I've been living in the future.
@AngelHdzMultimedia
Жыл бұрын
If only the top developers on KZitem would promote Vue more... but they all catter to the React demographic... non stop!!! Every time I check my notifications and see a new Fireship video, it's either about A.I. or React, and ocasionally about some other new technology. Videos for views/likes/engagement about all the flaws React has, that Vue already solves, BIG LOL! Thanks for being here for the Vue community!!! 🤝🔥
@businessoftechnology
Жыл бұрын
If you are outputting the "num" as HTML, then the return would be a string, right? To test it we would want to invert to expect a number to be returned and see if TypeScript caught that as an issue.
@phoenix-tt
Жыл бұрын
That is true. The way the {{ }} is compiled uses "toDisplayString", which, simply put, converts any value you pass to a string edit: And there is no way to change that output, because the compiler doesn't really know about types or what is expected.
@ErikHanchett
8 ай бұрын
If you do {{typeof num}} it's a number. So it's not a string. If you just add in 5, then it's a string by default. But it inherits the type that you set since it's a variable set in the script setup.
@pedrohenrique55172
Жыл бұрын
is there a way to make my components implement an interface? My idea is to force components to implement certain method types, in my context for page analytics
@juande891
Жыл бұрын
Hi! Do you have the code uploaded to a repository? could you share it? thank you!
@SXsoft99
Жыл бұрын
defineProps({selected: {type:Number}}) was doing the same thing
@edu.paixao
Жыл бұрын
Thank you! 🎉
@SinisterSlay1
Жыл бұрын
It's cool. Not sure why they want to make Vue like react. I'm confused by that, I picked vue because I didn't like the syntax of react. So seeing it turn into react is concerning. I'm still on Vue2 because migrating 20+ projects isn't simple. But I'm starting to wonder if I should even bother or should I just switch to react?
@anton-shubin-live
Жыл бұрын
If you don't like Vue leaning into React - consider Svelte.
@dobrilbojilov8184
Жыл бұрын
Most interesting things are still experimental like defineModel and destruct props.
@ProgramWithErik
Жыл бұрын
Yeah, I really like those!
@ДенисКуликов-м3о
Жыл бұрын
destruct props. It is useless to use them, since they cannot be passed to hooks
@franciscobarroswtxdemos2865
Жыл бұрын
I still don't know how do a simple button wrapper in `Vue`. :( Example... In react, I would just go `const Button = (props: JSX.IntrinsicAttributes['button'] & { myCustomPropTypes }) => ` I don't know how to do the same `JSX.IntrinsicAttributes['button']` in Vue.
@sinan720
Жыл бұрын
This is actually much simpler in vue. Your Button Wrapper component will automatically inherit the attributes of its child button. Have a look at the fallthrough attributes guide in the vue docs. If you want to be more explicit, there is also an interface called ButtonHTMLAttributes which is similar to JSX.IntrinsicAttributes['button']
@КириллТерешкин-ю8м
Жыл бұрын
About props in react it would be better to do HTMLAtributes for defining props
@krzysztofkk6964
Жыл бұрын
not bad, dude
@КириллТерешкин-ю8м
Жыл бұрын
It seems like Vue going to turn into react in a year or two, half of this new feature are what react already had in 2019 year and earlier
@emrysr
Жыл бұрын
does eslint support destructuring the props? i'm still seeing the error "...Destructuring the `props` will cause the value to lose reactivity.eslintvue/no-setup-props-destructure ..."
@bymaxmndr9888
Жыл бұрын
vue is acutally becomming react😂
@JP-hb4mv
Жыл бұрын
vue hype cycle - prefer stability
@alerya100
Жыл бұрын
Upgrading from vue2 to vue3 was a tragedy. never such a horrible stuff.
@mdawes306
Жыл бұрын
how about a video without typescript
@florind7056
Жыл бұрын
vue is combination between react and angular. I still like react more
@meggi8048
Жыл бұрын
this $() and $$() and complex slots mechanics are really awful. i hope they simplify this at one point.
@ProgramWithErik
Жыл бұрын
No worries, they did not go forward with that proposal!
@m-ok-6379
Жыл бұрын
Vue3 is starting to look like React which is BS cause I personally chose Vue cause it didn't look like React spaghetti code.
@yatsuk
Жыл бұрын
Changed everything again? I tired again and again rewrite my app
@tsolanoff
Жыл бұрын
You don’t actually need it, just stick to certain version…
@yatsuk
Жыл бұрын
@@tsolanoff I stuck with version 2 because of broken backward compatibility. Spend a time learning how to migrate to version 3 and now need to spend a time again for learning how to migrate to version 3.3.
@tsolanoff
Жыл бұрын
@@yatsuk the major part of all web apps are not being constantly updated just because they do their job. Migrating to new technologies requires many efforts and makes sense only if the current state can’t afford adding new features or supporting proper workability anymore. So as long as your app is working as it’s supposed to there is no need of migration. And you could develop your new projects using new version to follow up the tends.
@x0r1k
Жыл бұрын
Old syntax works as before, you don't need to rewrite anything
Пікірлер: 60