Codementor Events

Why Angular over React !

Published Apr 21, 2019
Why Angular over React !
Angular React
A Javascript Framework A Javascript Library
Works with regular DOM Works with virtual DOM
Two way binding One way binding
Introduced by Google Introduced by Facebook
Learning curve depends Learning curve depends

First of all angular should not be compared to react! Both of them are highly powerful and can be used to develop different kind of use cases.
But if you want to make some comparisons well here you go. React is in comparison to angular only a library, which is somewhat flexible in opposite to angular. How flexible? In angular you got the cli(as for now I can't remeber does react still got on, the CRA isn't a cli like ng-cli, not even close). React follow more a functional approach with additional librarys and tools to make it a sort of a framework, since react does only one thing and that is rendering content that you write in your components. On which in angular does the same but with that it has it's own internal dependancy injection framework out of the box, which in react you again need to setup that to use it. As for what is easier, as per my opnion when you get into react you will have a step and easy learning curve until one point that you need to mixup javascript with jsx, and that isn't the case in angular where you have the model-view view model design pattern, in which you have a code behind in a typescript component which you only bind to the html part of your component. To learn angular you get quite confused why is what where what is the module, or what is the routing module, and the documentation is kind of odd it gives you to much information without a proper explanation for what all is used for, but then again the react documentation isn't either that good since it will have 2 api's now that you need to know the class based api and hooks api. But yet again with rxjs, angular is kind of in the subject of functional programming and typescript also, but it also delivers some OOP paradigms like classes, interfaces and so on.
Definately Angualr is more powerful however React is more popular.

Discover and read more posts from Anurag Vatsa
get started