Re:Angular 2 Fundamentals Course
by hugozap on Friday July 29, 2016 @12:26PM
(#12187896)
What in particular about JSX makes it messy compared to vue? Messy template code can happen in both.
[ Parent
| on HN ]
Re:Angular 2 Fundamentals Course
by clivestaples on Friday July 29, 2016 @12:39PM
(#12187998)
Vue templates support conditional rendering (v-if/v-show/v-else) which I didn't realize I missed until using them. Also, conventions around component data are really nice and help keep markup tidy and very readable.
I like to think of Vue as React with sensible conventions. That said, both are terrific and solve UI problems very elegantly.
Re:Angular 2 Fundamentals Course
by troncheadle on Friday July 29, 2016 @01:07PM
(#12188200)
React handles conditional rendering better imo. You use regular JS instead of having to learn a new API. You can use control logic in your render methods to great effect.
Re:Angular 2 Fundamentals Course
by clivestaples on Friday July 29, 2016 @01:17PM
(#12188275)
I definitely agree that React is clean for the reasons you state and I always enjoy building UIs with it. I suppose my comment was just a reflection on the differences that I found refreshing - to my surprise.