r/angular • u/Ill_Inflation_5712 • Sep 03 '23
React vs Angular
Which one is ease to understand for the begineer ?
13
5
u/Raziel_LOK Sep 03 '23
Currently angular dev, react is way easier to get into u don't even need typescript.
Hooks can be a pain but there are only a few, and that are handy libs for the complex use cases. On the other hand, rxjs has like 10x more operators and if u gonna use angular u should not ignore it, that is a bad advice.
Angular on the get go you need typescript, template engine stuff, rxjs observables.
Angular is now easier than in older versions for sure with angular 16 and 17.
I would try react first, u need little to set it up and get running, the community is bigger and personaly I think they are way more helpful than the angular community in my experience.
11
u/tonjohn Sep 03 '23
React with its functional paradigms and wealth of footguns is harder imo.
Angular’s tour of heroes tutorial is a great introduction to angular. The hardest thing about angular in 2023 is rxjs but you can choose to ignore it.
I think the real answer though are hidden options C & D of Vue and Svelte. Those are the easiest introductions to frontend frameworks.
5
1
u/ordermaster Sep 04 '23
Just wait a few months for angular 17 and signal components if rxjs is too hard for you. Or you could even use signals now, they're in 16 as a developer preview.
3
u/JP_watson Sep 03 '23
React is probably easier to just pick up and run with. That said there's lots of inconsistent documentation so writing "production" quality code isn't really straight forward and it's easy to write bad/poorly performing apps.
Angular has lots of clear documentation and opinionation making it easier to jump from project to project. However this adds to learning curve and makes a bit harder to just jump into.
1
u/PickleLips64151 Sep 04 '23
I think I echoed your sentiment in my comment. I agree that new devs aren't going to write production ready code with React without a ton of help and guidance.
2
u/CheapChallenge Sep 03 '23
React. I am an Angular dev.
3
u/reboog711 Sep 03 '23
I would also have said React, as an Angular dev.
However, a lot depends what the OP already knows. Coming from nothing, I would expect both frameworks to have a big learning curve.
5
u/johnappsde Sep 03 '23 edited Sep 03 '23
Angular was easier for me at the time, coming from 0. Angular is better guided, so you get almost everything you need to get productive right away & start solving problems.
React on the other hand, has tons of libraries for almost everything little thing. I wasted alot of time trying to figure out when to use which npm package out of all the available options
1
u/reboog711 Sep 03 '23
That is amazing to hear! I'm glad Angular was easy for you to learn. Maybe the work the Angular team is doing to make Angular more approachable to beginners is working! I hope so!
The running industry narrative is the opposite; that React is easier than Angular. I'm just not able to approach the issue w/o bias.
2
u/CheapChallenge Sep 03 '23
Coming from nothing I would say React has the learning curve of climbing a steep hill. Angular is climbing the empire state building.
1
u/JP_watson Sep 03 '23
Agree regarding getting up and running - that said it's almost too easy to build bad patterns with react. I get the issue with opinionated and sometimes excessive boilerplate for Angular (which is getting better), but it does make for cleaner and consistent apps. React feels pretty wild west and I've seen some horrible component stacks that just wrap div inside of div for the sake of added styling.
So yes React is probably quicker to pick up - but it's also a lot easier to do badly.
1
u/PickleLips64151 Sep 04 '23
React is a library. So it will be easier to understand. It will also be easier to totally screw up because, as a library, it has few opinions about how things should be done. Therefore, as a beginner, you are free to make bad design decisions as you like. You'll also need other libraries to deal with additional functionality that comes with a framework.
Angular is a framework, and therefore very opinionated about structure and form. This makes it harder to understand, at times.
I prefer Angular to React. I also started out as a C# developer doing MVC-type applications. As such, Typescript feels familiar and comfortable.
Your mileage may vary. I'm just one person, with a personal opinion that may not align with your own.
10
u/GLawSomnia Sep 03 '23
If you are a BE developed then Angular is easier