3 ms·
Jsx is horrible is mixing markup and code all over again A DSL like Elm does is much better
by walterstucco 10y ago
Jsx is horrible
is mixing markup and code all over again
A DSL like Elm does is much better
- the_duke 10y agoElm doesn't have a DSL, you just call functions to create dom elements. It's really much like JSX, but without the syntactic sugar of using HTML-like markup.
- treehau5 10y agoJSX is simply unobtrusive javascript realized at it's logical conclusion. I don't understand why people complain about it so much. https://medium.com/@housecor/react-s-jsx-the-other-side-of-the-coin-2ace7ab62b98 https://medium.com/@housecor/react-s-jsx-the-other-side-of-t...
- aarpmcgee 10y agojsx compiles to plain old function calls, which is how you write your templates in elm as well. there's very little difference besides developer ergonomics.