React versus Angular
React and Angular are both popular for writing modern web apps. What are differences between React and Angular?
Angular is supported by Google. Whereas React is supported by Facebook.
Angular is a full framework, whereas React is only a view library. With React you will have to choose other libraries such as React Router, fetch (for http requests), jest (for unit testing)
Get Andrew T’s stories in your inbox
Join Medium for free to get updates from this writer.
Angular uses typescript by default. React projects are typically written in Javascript. React projects can use Flow which enables static type checking.
They both have popular mobile counterparts (ionic for Angular, and React native). They both have powerful CLIs (create react app and Angular CLI). Both have popular styled component libraries such as Material UI and Angular Material.
Angular uses string templating for html, whereas React uses jsx, a syntax extension to JavaScript. As a result, Angular has it’s own syntax for structural directives (ngFor, ngIf) whereas React uses plain old javascript for conditional rendering and looping.
They both have popular state containers. Angular has ng/rx store whereas React has Redux and Mobx. Angular supports 2 way data binding using ngModel whereas React has 1 way data binding. React updates it’s state and the renders the UI elements.
While both are component driven, React emphasizes functional programming, whereas Angular and Typescript favor an object oriented paradigm. React encourages functional composition rather than inheritance. It has functional patterns such as higher order components and render props. It can create components from functions.






