Why I like Reactjs Over Angular


Before getting into the points, let me clarify one thing that both of the technologies are equally good. The preference of choosing one technology will completely depend upon various factors like project size, Project architecture, etc. In this article I'm going to explain why I like Reactjs over Angular, & this is completely my opinion.
Functional Component
React allows to use functional component, which makes code more concise & easier to understand & test. On the other hand, Angular uses class based component structure, which is very long compared to functional component & class based component gets hard to read when the code increases.
Smaller learning curve
React has tremendously smaller learning curve than Angular. If you are good in javascript than it will take maximum 1.5 months approximately to learn Reactjs. On the other hand, Angular has so many things inbuilt which will take so much time to understand. For example, Rxjs is a very big topic in Angular & also it's very complex to understand. Other than that in Angular you need to learn reactive forms, template driven forms, custom pipes etc, which are not there in Reactjs. That makes Reactjs very easy to understand & simple.
Greater flexibility
Reactjs is simpler to manage and update because of its modular structure. As a result, Reactjs based projects are adaptable and simple to scale. Additionally, it ultimately saves a great deal of time, money, and effort for developers.
BehaviorSubject
Although BehaviorSubject is an amazing thing in Angular, but you need to be very careful while using it. If you are subscribing to a subject and on component destroy if you forgot to unsubscribe it may cause memory leak, which will make the website laggy. This is a very common mistake among developers.
Performance
By updating only the necessary components rather than re-rendering the entire page, React's virtual DOM (Document Object Model) improves the efficiency of the application. That's why Reactjs excels in performance than any other framework / library.
These are my top points because of which I like Reactjs over Angular.
Thanks for reading.
Subscribe to my newsletter
Read articles from Bablu Roy directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by
