3 ms·
No mention of Typescript. You'd be mad to consider writing a significant app without it, and React has really great Typescript support - even templates are type
by IshKebab 6y ago
No mention of Typescript. You'd be mad to consider writing a significant app without it, and React has really great Typescript support - even templates are type checked properly thanks to JSX/TSX, and basically all tools support JSX these days.
Vue doesn't come close to that, but it does look like Svelte is at least a bit better: https://svelte.dev/blog/svelte-and-typescript https://svelte.dev/blog/svelte-and-typescript
I'd still be wary that there are big caveats though. React was designed for Typescript. Javascript projects that bolt it on later tend to have issues.
- nsonha 6y ago> React was designed for Typescript this isn't true but JSX was made to be "just js" (obviously isn't true either) which contributes to it.
- presentation 6y agoThe one place where react typings are disappointing to me is that all elements are typed as JSX.Element, meaning you can’t assert a specific type of child element. Usually not a big deal but would be useful in a number of cases.
- nsonha 6y agoIt's a limitation of TS, not react. Flow for example can type elements more accurately.
- jansan 6y ago>No mention of Typescript. You'd be mad to consider writing a significant app without it, Thanks for calling me mad :)
- brailsafe 6y ago> Vue doesn't come close to that > thanks to JSX/TSX, and basically all tools support JSX these days I haven't used TS and Vue together, but Vue 3 seems to have been written with TS, as well as having supported JSX for quite a while. What are the limitations?
- IshKebab 6y agoIt doesn't type check templates properly.