5 ms·
Problem me with Vue is it's template language. Why invent a new one and not use JSX? Main selling point for me with JSX is it's the most type-safe templating la
by Ciantic 10y ago
Problem me with Vue is it's template language. Why invent a new one and not use JSX? Main selling point for me with JSX is it's the most type-safe templating language I've seen when used together with TypeScript.
People have pointed out here that it's easy to use JSX with Vue, and that could be something I might look at.
- beefsack 10y agoYou talk about JSX as if it is some sort of standard. A significant number of people aren't interested in compiling to JS or language extensions for a number of reasons. I appreciate what Facebook were trying to achieve with JSX, but libraries like Mithril serve as an example that native templates can be done without a syntax extension.
- maktouch 10y agoReact can be used without JSX like Mithril is doing. In fact, pretty much all the JSX compiler does is convert those to React.createElement()..
- bradrydzewski 10y agoFWIW my understanding is the vuejs template language is based on an early version of the web component template specification (which might predate the jsx specification). You may therefore notice a good amount of overlap between vuejs templates and polymer, for example.
- paulddraper 10y ago> Why invent a new one and not use JSX? JSX is a new templating language too. It not standard; it not JavaScript.