2 ms·
With Vue and Angular you don't have to deal with controlled components, and you don't have to figure out how to mix JavaScript expressions with JSX expressions
by benatkin 8y ago
With Vue and Angular you don't have to deal with controlled components, and you don't have to figure out how to mix JavaScript expressions with JSX expressions (sometimes it gets ugly).
- dmitriid 8y agoIn Vue and Angular you only need to figure out how to mix Javascript-like expressions with HTML-like templating language: <ul id="example-1"> <li v-for="item in items"> {{ item.message }} </li> </ul>
- benatkin 8y agoPretty slick. It isn't fundamentally different from *ngFor in Angular (with let to declare the variable), but the details make it much more pleasant.
- dmitriid 8y agoNot slicker than JSX, definitely. It’s not HTML, it’s not Javascript. As code goes in complexity Vue quickly becomes ... let’s call it weird: https://mobile.twitter.com/dmitriid/status/987771666846699520/photo/2 https://mobile.twitter.com/dmitriid/status/98777166684669952... Javascript-like scripting in strings? Check. Different versions of HTML-like attributes? Check. Magic binding of all that to specific structures in JS code? Check. But please, do tell me how it’s beter than React where you “have to figure out how to mix JavaScript expressions with JSX expressions (sometimes it gets ugly).”