▲ | apsurd 18 hours ago | ||||||||||||||||
it's not about feigning html purity it's the opposite. Why pretend we're using HTML when it's not? so with react it becomes a js flavor, jsx, which some people hate but it's very clear that it's a made up language IN real javascript. edit: the mental model is instant: it's just javascript for reals. do anything you want in javascript using real js primitives. it's not about looking pretty, jsx doesn't. it's about not relearning basic programming primitives in a made up _markup_ language. my issue with angular is it's neither real html nor any programming language. its made up pseudo-programming language for no other reason than it fools people into thinking "it's just HTML". that's my gripe. | |||||||||||||||||
▲ | markmark 18 hours ago | parent | next [-] | ||||||||||||||||
Completely agree with you. Every time I see yet another template language adding some clumsy for-each loop syntax I sigh. Just let us use a normal programming language. As an example I give you every template system ever invented. Devops tooling is full of them. | |||||||||||||||||
| |||||||||||||||||
▲ | recursive 2 hours ago | parent | prev | next [-] | ||||||||||||||||
JSX also fools people into thinking "it's HTML in javascript". I've heard several co-workers say this. JSX is a made up language as well. It's not javascript. That's why you need a build step to parse the syntax. Angular and vue's template language are no more made up than JSX is. | |||||||||||||||||
▲ | harry_m 17 hours ago | parent | prev [-] | ||||||||||||||||
Both the Vue template language and JSX are supersets of HTML. However, when it comes to integrating with CSS, JSX significantly worsens DX. |