So you’ve started going through some front end techniques, and you’ve been exposed to these things called React, AngularJS, and Backbone. Maybe you’ve got certain opinions on each and you (probably) have a favorite. Well, I’m here to tell you, React is best. Get ready for a three minute read of my opinion on the matter.
The above chart clearly demonstrates that most people prefer React over Angular. I’m not even going to throw Backbone into the conversation just yet because it’s 2019, not 2009. The most important are the two columns on the left. The blue one shows that nearly 65% of people who used React would use it again, as compared to nearly 24% of people who would use Angular again. The second column is even more damning, as only 7% of people would NOT use React again, and a whopping 34% of people would NOT use Angular again.
So it’s not just me, guys. The consensus is that React is better than Angular (and they’re BOTH better than the outdated Backbone). But why? In my case, it’s all about how data gets passed around. In React, we have these things call props, which are kind of exactly what they sound like — they get passed around like properties in functions. Take the following code example:
Now, let’s check out this SAME EXACT thing in AngularJS:
So that’s it. Passing data around, the core of programming, is easier in React — which means React is better. The end.
Unless, of course, you’re stuck having to choose between AngularJS and Backbone (for whatever ludicrous reason). Then go with AngularJS, every time. The ONLY time to use Backbone is if your company tells you they’ll fire you if you don’t.