21 ms·
I don't think that's true. Angular isn't very maintainable because its architecture encourages you to write spaghetti code with implicit dependencies. React, on
by RussianCow 10y ago
I don't think that's true. Angular isn't very maintainable because its architecture encourages you to write spaghetti code with implicit dependencies. React, on the other hand, encourages a much more explicit data flow, so I would guess that React apps, all else being equal, are much more maintainable than Angular apps.
(Standard disclaimer about how you can write maintainable code in any framework and this isn't necessarily a rule.)
- renke1 10y agoTo be fair, you should compare React+<state management library/framework> with Angular because a lot of complexity in the frontend comes from dealing with state. Sure, you can just use setState and go with React only, but not many people do that (for a reason).
- beaconstudios 10y agoI think people just implicitly mean React+Redux in these cases.
- RussianCow 10y agoThat's true, but even only using setState and props, the data flow in React is much more explicit than that of Angular. My point was that React encourages more maintainable code by default, even without other libraries.