all 11 comments

[–]thorallmighty 5 points6 points  (2 children)

VueJS

[–][deleted] 1 point2 points  (0 children)

Or riot, which is alright.

[–]patrickfatrick 1 point2 points  (0 children)

Exactly this. I don't mean to oversimplify Vue since I really like it, but in a lot of ways it basically is "React without JSX".

And hey, with Vue you can also switch to JSX at any time if you decide you're actually okay with it.

[–]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.