3 ms·
I believe React is popular (among other reasons) because you don't need to learn what is v-if v-else and other repeative commands when you have plain and simple
by jplusplus 10y ago
I believe React is popular (among other reasons) because you don't need to learn what is v-if v-else and other repeative commands when you have plain and simple JS equivalents.
React has te philosophy "It jusy works", and people love this
- k__ 10y agoYes, I think the main selling point of React is it's tiny and intuitive API. I don't know how these frameworks compare in bigger sized applications, but if you just do a POC in Angular2, React and Vue.js, then React beats all of them. This probably leads to many people considering React for their new applications. If you go for bigger stuff, I don't know which would be better. I like React, but I also found it a bit cumbersome to create all these Redux actions and stores etc. Also async stuff, especially righ datarate websocket stuff, seem a bit awkward with Redux.
- Bahamut 10y agoDo you have numbers? Angular 2 is quite small if you're using treeshaking.
- boubiyeah 10y agoNot really; it has a big unshakable core
- Bahamut 10y agoGot numbers? I know someone who was able to get a simple app down to below 30kb including polyfills (albeit with a lot of work using Google Closure), and from what I understand that was before AoT compilation was there. Much of the core is shakeable, I don't believe your assertion at all. As you use more features, the app size would grow would be true due to using parts that were previously shakeable becoming unshakable, but that complexity being in a unified language/base of a framework worked on by very smart people is most of the time better than homebrewed business logic by an above average developer
- k__ 10y agoI mean API size and concepts, not size on disk. React is quite big, I think about 50kb.
- staircasebug 10y agoAny developer familiar with mustache templates, Backbone and/or Angular should immediately pick up Vuejs templating. For me and most others I've heard from, the cognitive overhead was minimal.