3 ms·
working anything with loops and conditionals, Vue is way nicer than JSX all the way around, especially the more complex it gets with *-level nested json data tr
by jaequery 9y ago
working anything with loops and conditionals, Vue is way nicer than JSX all the way around, especially the more complex it gets with *-level nested json data trying to mix in with conditional portions of the view, and even saving reactive data back the scope of the loop, etc. i'm not sure why you'd think otherwise. JSX code with many loops and conditionals can start look incredibly ugly pretty fast. if you can provide an example, we can compare between the two to see which is nicer.
- brlewis 9y agoI have a JSX example. It isn't React, but it's Mithril which is similar: https://github.com/brlewis/brlewis.github.io/blob/master/2017/planets.jsx https://github.com/brlewis/brlewis.github.io/blob/master/201... Blog post accompanying said example: https://medium.com/front-end-hacking/how-it-feels-to-learn-javascript-in-2017-a934b801fbe https://medium.com/front-end-hacking/how-it-feels-to-learn-j... I'd be interested to see the equivalent vue.
- Kiro 9y agoMaybe it's just me but I've struggled a lot with especially Angular's template syntax. Would love to see a side-by-side comparison of complex nested data structures in Vue and React.