by parhamn · 2y ago · 0 comments
I think it could work if it decoupled the reactivity layer and exported a "rerender me" hook that libraries like react/preact/vue/solid/etc could use to manage reactivity.
Because let's be real, `<ul render="@items: (name,index)` and `v-for` type things are terrible. JSX got a lot of things right. It's a pretty darn good marriage of HTML and javascript as far as syntax goes. Besides className, key and the curly syntax to drop into javascript, its pretty pure and straight forward.
https://es.discourse.group/t/proposal-esx-as-core-js-feature...
vue/angular are better than jsx. Differences are minor, of course. But why should it be jsx?
You cannot compare Vue/Angular (frameworks) to JSX (syntax extension for JavaScript). As a fact you could write your templates in Vue or Angular using JSX.
Both are fine. It doesn't have to be a war.
JSX is trivially converted to a Javascript function call which immediately explains everything about its capabilities and syntax.
I don't see how jsx is more trivial than html which is what cue templates are.
This goes into more details: https://news.ycombinator.com/item?id=19199423