Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> Unfortunately, this is a weird stance to take in the Vue community, almost nobody uses JSX/TSX.

Typed components is 200% of why I'm writing React these days. Angular has typed components too (they went in on TypeScript early), but the Angular Language Service / IDE integration didn't come to later-- so for a period, no intellisense.

But having intellisense while writing TSX is so wonderful, especially when you're working with complex or deeply nested object structures.



Do you write Vue as well?

I have to hop back and forth between Vue and React frequently and the experience of writing a TSX component is pretty nearly identical.

For stateless components -- it's literally the same syntax as React.

For stateful components, you just need to wrap your component in "defineComponent()" and your TSX elements get returned from a closure in "setup()".




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: