Is React killing Angular
React VS Angular
This topic has become very popular of recent, but to me, this question sounds like we are asking did angularjs kill Jquery? The answer is No, Yes or Maybe Or even, how can we measure if the percentage of one library’s fall is due to the rise of another library’s.
Angular and React are totally different instruments, but both are great for developing single-page applications. But before that, let us bring out the basic difference between Angular and React, which is the fact that Angular is a Framework while Reactjs is a library.
A Framework is, in my own understanding, is defined as an already made application that is just missing your application business logic, for example, you might just need to fill the gaps in the framework with your business logic since it will handle lots of boilerplate code for you. For example. parsing HTTP parameters in servlets or reading cookies that are stored in the browser, etc.
A library, on the other hand, is a set of functions that are developed and grouped together which you can import into your application and call at your own will.
Now, If we can generalize this question a bit like,
Can a library beat a framework?
I don’t have an answer to that question, but in my own (developer) opinion, any framework, or library’s growth totally depends on how many active developers are on it at the moment, and what is the rate of the growth percentage of new developers that are switching or learning these technologies per month.
But from the view of Managers/entrepreneurs (decision-makers), It completely depends on what the chosen one is offering.
Extra:
- Would it reduce the time I spend on product development?
- Would it reduce the cost of product development/testing?
- Is there any support from developers in case an unexpected issue occurs?
- Is there an active community that is around it?
- Can I get a replacement for my top developer within time/price.
All the above measures must be considered to be able to decide whether or not a company should pick a framework/library for their next product.
So now Reactjs vs Angular?
Basically I am more proficient with angular but I think that react has a much better future than angular since it takes away most of the learning curve of developers and with react-native, a single code base can be used across multiple platforms. This could be a very sweet sound for business. since Nowadays user base any business targeting is spread across many platforms running on different types of devices. So if a single react codebase can be able to handle all the platforms, then the business would not have to spend money and time on developing their product for each platform separately.
One more possible main reason for the growth of React is that angular version 1–2 switch took a major toll on the angular developer base because angular 2 just made all the angular knowledge/expertise invalid. And all the angular js developers have to re-learn angular 2 and typescript together with it.
So a typical decision-maker would definitely have to consider the thought that what if Angular comes up with another breaking change again? (as they have done it in the past). And as we know already all business and organizations prefers stability.