DEV Community

Discussion on: Angular is almost always better than React

Collapse
 
devdufutur profile image
Rudy NappƩe

So why did you like if you disagree ? šŸ˜…

Next.js does not reduce that much the number of dependencies, excepts for routing.

In my experience, you don't need redux in 95% of projets. Axios and React Query as well (the only missing feature in fetch would be interceptors, but it's easily overcome). But the main point is even if core angular dependencies are consistent in term of versionning, you still need to add them (@angular/router, rxjs, @angular/material)... So is there so much difference ?

Thread Thread
 
leob profile image
leob • Edited

Well I can see that you made an effort to formulate a coherent argument, so that's why I put a like, not because I completely agree :)

I don't know what kind of projects you have in mind, but in 95% of serious apps you do need some sort of "global" state management for the whole app, i.e. above the component level. Whether you do that with Redux or in another way is a different discussion (don't tell me that you don't need Redux coz you'll do it with Context and Hooks, lol) - the point is you'll need some sort of state management other than component level "setState".

Axios, yes okay, you can emulate all of its features with fetch, so if you want to be super minimal on bundle size you can skip Axios.

But state management, in my experience you'll need it not in 5% of the cases but in 95% of the cases. No idea where the Redux hate comes from, TBH.

But what exactly was the debate about again?

Thread Thread
 
polterguy profile image
Thomas Hansen

But what exactly was the debate about again?

ROFLMAO :D

Thread Thread
 
devdufutur profile image
Rudy NappƩe

I was just joking don't worry.

Global state is kind of a antipattern in React, excepts for user preferences or authorization it should be use with extreme care. I saw many projects starting with redux for no specific reasons which involve overengineering and maintenance issues.

Not sure what was the debate šŸ˜…

Thread Thread
 
leob profile image
leob

That's good, I like jokes as well :)

I agree that you shouldn't start with Redux per se, but if you do some prior analysis then in most cases it's simple to find out whether or not your project will benefit from global state management.

But, what's funny about us having this debate is that we're lending credibility to the author's narrative that Angular is "better" - because, apparently, in the Angular world they don't need to have these kind of debates :)

Thread Thread
 
devdufutur profile image
Rudy NappƩe

Sure, damn angular users šŸ˜