Re:Vue.js vs. React
by pacomerh on Saturday August 19, 2017 @02:07PM
(#15054721)
Hm? You can actually write loops and conditionals inside of the markup. And... why would you strictly want to do that?, you can write cleaner code by separating your logic/UI.
This look more like a rant overall.
[ Parent
| on HN ]
Ultimately you can, but your JSX code becomes more difficult to read and write.
> you can write cleaner code by separating your logic/UI
That's precisely the point of using a templating language: separation of concerns.
JSX mixes producing markup with your component logic.
> This look more like a rant overall.
There is a difference between an opinion and a rant. I really won't debate whether Vue is superior to React, I'm just stating why I prefer it.