Hacker News new | ask | show | jobs
by troupo 855 days ago
Differences are major. Vue's templating is a haphazard collection of elements that grew organically as the author(s) realised that more stuff needed to be added for templating to work. There's the Javascript-like DSL, there's Javascript expressions, there are HTML-like attributes, there are HTML-like attributes with magical extensions, there are...

JSX is trivially converted to a Javascript function call which immediately explains everything about its capabilities and syntax.

1 comments

Both template engines have to provide roughly the same be because the output is simple render functions that emit html. Sure, they are different but map to the same browser apis, so not that different.

I don't see how jsx is more trivial than html which is what cue templates are.

Vue templates are arguably much more removed from HTML than JSX (which doesn't map to HTML but to Javascript function calls).

This goes into more details: https://news.ycombinator.com/item?id=19199423