DEV Community

Discussion on: Explain the main differences between ReactJS and AngularJS

Collapse
 
sergiodxa profile image
Sergio Daniel Xalambrí • Edited

I like the food analogy, but Angular can also do SSR so I think this is how I would explain it:

React is when you go to a restaurant and can pick every ingrediente in your food, do you want bread? you can use any bread from npm, do you want meat again anyone from npm.

In Angular you have all the ingredients already picked for you, you just need to use them to make your food.

This means React will let you do anything as you want, but this also mean you need to know a little more about the ingredients. While in Angular you just need to join them to make your food, but if you don't like the @angular/bread and want to use my-custom-bread from npm you may have it harder because is the Angular version is tightly coupled with the rest of your food (Angular app).

This is basically the difference between a library (React) and a framework (Angular).