Re:Angular 2 Fundamentals Course
by sdegutis on Friday July 29, 2016 @12:05PM
(#12187764)
That doesn't address the issues the comment just above you (at time of writing) brings up, namely that even with Vue you still need to set up all the tool chain around it, whereas Angular brings a lot of that to the table for you.
[ Parent
| on HN ]
I handle a big React app at my job. It's messy as fuck with JSX. We made a transition to Vue. Couldn't be happier.
What in particular about JSX makes it messy compared to vue? Messy template code can happen in both.
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.
So it's your engineer's fault. Plenty of companies get stuff done with React everyday.
If you want, you can use Vue.js just like jQuery. Pop it in a <script> tag and you're done. No tool chain needed. I do that all the time for small-medium sized projects and it works absolutely fine.