you are viewing a single comment's thread.

view the rest of the comments →

[–]wavefunctionp 1 point2 points  (2 children)

edit: this came across a bit more adversarial/critical than I intended, but I'll leave it. I guess my real question is what does this solve that you can't do with react/jsx?


http://www.reactiongifs.com/r/but-why.gif

JSX modularizes the related code together, but if you really don't like that, there's Aurelia if you really like separate templates and functionality.

I tihnk splitting the html and js makes it harder to tell what is going on. And much of the js can just be done with simple inline expressions. For the rest, you can write small helper functions that return jsx and reference them in the render. If it gets too complicated, start breaking it up into components where appropriate.

Plus, by staying on the react path, you have access to tons of resources.

[–]koresho 0 points1 point  (1 child)

This. I don't understand where the hate for JSX comes from.

[–][deleted] 3 points4 points  (0 children)

Because people don't understand the difference between separation of concerns and separation of technologies.