4 ms·
> proprietary templating language Isn't that exactly what JSX is?
by rocky1138 9y ago
> proprietary templating language
Isn't that exactly what JSX is?
- jsd1982 9y agoNo. JSX is a small domain-specific language for expressing a hierarchy of virtual DOM nodes. Angular is a template language in that it eschews JavaScript compatibility in favor of its own directives that try to emulate basic iteration and conditional expression evaluation.
- davidjnelson 9y agoI wish you could write non string based jsx in angular. Or at least make aot fast enough for the regular webpack watch / recompile workflow.
- chrisco255 9y agoNo it's a standard. You can use JSX with Vue 2.0 now, as well as Preact and others.
- ageofwant 9y agoJSX has nothing to do with 'templates', it's an alternative javascript notation. When you write JSX code you write javascript code, using JSX syntax.
- gruez 9y agoI think he meant that in vue.js/angular you have to learn a bunch of proprietary tags for each construct (if, foreach, etc.), whereas in JSX all you need is plain old javascript.