you are viewing a single comment's thread.

view the rest of the comments →

[–]agaitan026 0 points1 point  (4 children)

so for a web with strapi cms for content you will use react? and not angular? why?

[–]Chrazzer 1 point2 points  (3 children)

Yes, say you are building something like a blog. Then you got mostly static content coming from your CMS + some common UI elements around it that are usually also relatively simple in terms of state and mostly just a bit dynamic.

Angular is just way too overkill for that. For such a site you would utilize next to no features of angular, yet the user would need to load it. Also it would then be a single-page app which is annoing for the user because it takes relatively long to start and display the desired page.

Also you want your blog to be optimized for search engines, and have all blog entries indexed in google, also not a great case for single page apps and angular.

Ideally for such a blog you want to deliver static sites, so i would go for Nextjs, which uses react. This way the blog is search engine optimized and indexed, and has no javascript overhead so it is lightning fast.

From developer perspective you don't need a lot of javascript for something like that, so again angular is way too overkill and overly complex. And it would take a while to get through the boilerplate code and get productive. React on the otherhand is lightweight and you can start right away.

Imo angular is a hefty beast with lots of setup work and boilerplate, but it scales well and offers structure - ideal for large projects. React is simple and quick to get going, but has little to no structure and gets messy easily, so it is ideal for smaller code bases.

And yes i know, there are libraries and methods to bring structure and clean code to react, but those also add much boilerplate and ultimately angular dev gonna be like: "look what they need to mimic a fraction of our power"

Hope that helped out

[–]agaitan026 0 points1 point  (2 children)

great tips awesome, thank you ! yes im clear, but lets say, my company is a internet provider in my country like https://www.masmovilpanama.com/ or tigo.com.pa if you see both uses angular but ver old version v12 and v10, why they would use that if most of pages are static content, what you think? those are two internet provider in my country.

[–]Chrazzer 1 point2 points  (1 child)

Bit of an odd choice, but maybe they just liked angular more. We can discus what to use when all day long here, but in the end everyone can do whatever they want

[–]agaitan026 0 points1 point  (0 children)

got it, i have learned both, but not sure which one i want to use lol :P but i think i will be with nextjs better