DEV Community

Discussion on: Why React is winning over Angular?

Collapse
 
peb7268 profile image
Paul Barrick

I find it ridiculous when people say React has a smaller learning curve. Which flavor of react are you referring to? Which router? Which build system? Which cli tooling? Every react project is different because it's wild west.

Collapse
 
akashshyam profile image
Akash Shyam

I agree with you! There are so many things you might not have heard of but are used in jobs. Atleast, angular gives us a bunch of things so that we know we are not missing anything major. But still, React is my favourite framework(just cuz I don't know any other JS frameworks lol)

Collapse
 
ivan_jrmc profile image
Ivan Jeremic

Use Nextjs then... and why should everything be opinionated react is just the view layer.

Collapse
 
marvinkweyu profile image
Marvin

HAhaha .. laughed so hard at this comment

Collapse
 
jwhenry3 profile image
Justin Henry

Tempered and experienced developers will latch to a project template or simply use eslint, prettier, commitlint, husky, etc to standardize the workflow and code style. It also helps to standardize on the technologies used.
Zustand, unstated-next, material-ui, react-query/swr, emotion/styled, axios, etc. If you choose what technologies have been trustworthy in your past and have proved their value, then you can guarantee the same experience across projects.

Collapse
 
fullstackchris profile image
Chris Frewin

React is purposely built this way. It's unopinionated, so you can add anything you want to it. Routers, build systems, CLI tools - these are all extraneous packages and NOT React!

Collapse
 
yaromey profile image
Yaromey

Totally agree. I tought React was simple, but after seeing a project at a new job I was shocked how different it was there. All logic INSIDE the jsx... Man glad I've ran away from that.

Collapse
 
dejanperovic profile image
Dejan P.

What do you use right now?

Collapse
 
standelethan profile image
Ethan Standel

I feel like this is a pointless thing to note and a bad faith argument. If you just compare "@angular/core" to "react" the stuff inside them is pretty comparable. So what does React make easier? Templating. You have to learn JavaScript with sugar, rather than a custom templating language. Modules. With React you have to learn ES6 import statements and you're done, but with Angular your have to learn that plus the convoluted and messy NgModule system. And not to mention Reacts patterns don't force you to learn DI out of the gate. I'm not going to say DI is bad, but I'm going to say the concept is weird for beginners and that above all, in a client, it's very rarely got a purpose. 99% of folks Angular service @Injectables are just one instance.

Collapse
 
peb7268 profile image
Paul Barrick

Good point.

Personally I liked the nudge to learn typescript. I've been using it since it's was in Angular RC candidates so at the time the browsers didn't even support const and let or the class keyword so in those times it was letting you use next gen js features w/o babel.

That has become much less of a point nowadays though.

I'm general I feel like it promotes learning of good software architecture patterns rather than proprietary syntax.

Kind of feels like you're suggesting it's a bad thing for developers to learn how the concept of dependency injection works, or how strong programing patterns help.

I don't see it as a drawback to basically teach developers SOLID design principles as they learn a framework at the same time.