3 ms·
> 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.
by JMTQp8lwXL 6y ago
> 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.
- gavinray 6y agoDo 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()".