logoalt Hacker News

Timon304/01/20251 replyview on HN

> IIRC it's pretty close, but you'll still end up writing things like `{ type: String, required: false }` where in React you'd just write `string | undefined`.

In Vue you also write `string | undefined` since Vue 3.

Also note that the thread you linked is 4 years old.


Replies

IshKebab04/01/2025

> In Vue you also write `string | undefined` since Vue 3.

I took that example from the current official Vue 3 docs: https://vuejs.org/guide/typescript/overview#general-usage-no...

> Also note that the thread you linked is 4 years old.

So 2 years into Vue 3. Has anything changed?

I mean it's not bad enough to be a dealbreaker any more like it was with Vue 2. The real dealbreaker is still the reactivity system which leads to spaghetti very quickly.

show 1 reply