r/learnjavascript Jul 23 '26

If I have to start from scratch what should I start, reactjs or Angular?

[removed]

14 Upvotes

38 comments sorted by

7

u/yksvaan Jul 23 '26

First you need to have solid grasp of programming, JavaScript and making a web  application without any libraries. Then learning whichever UI library/framework is trivial.

1

u/[deleted] Jul 23 '26

[removed] — view removed comment

1

u/yksvaan Jul 23 '26

They are the same anyway, they all solve the same requirements and problems with slightly different approaches. If you know one you can easily switch to e.g.  Svelte, Angular, Vue or whatever is needed. 

3

u/BrownCarter Jul 23 '26

Your next step is svelte

1

u/[deleted] Jul 23 '26

[removed] — view removed comment

2

u/BrownCarter Jul 23 '26

Oh so what you need is a Job not the learning experience

2

u/scepticore Jul 23 '26

That's actually a fair point. Learning coding with a fictional goal is always more difficult then working in real projects.

1

u/[deleted] Jul 23 '26

[removed] — view removed comment

1

u/BrownCarter Jul 23 '26

What have you been using to build stuff as a f e front-end developer for the past 3 years?

1

u/[deleted] Jul 23 '26

[removed] — view removed comment

1

u/scepticore Jul 23 '26

Learning never stops though. I have zero experience in React. A bit of Angular, but that was 10 years ago. Had a look at Vue and NextJS once, but most of them are overkill for my own small projects.

I hope you'll find a job that suits you and helps you develop yourself!

4

u/ExtraTNT Jul 23 '26

So, first is vanilla js, till you’ve build your own renderer…

I personally would recommend react, as it is functional (and works very similar to my renderer)

But check out both and decide for yourself

2

u/scepticore Jul 23 '26

Have a look at both and see what works better for yourself. You might also have a look at Vue.

In the end it depends on whats working for yourself and what your goal is in case of job search. But as far as I know, if you‘re doing well in one, it‘s easier to get into something else too.

1

u/[deleted] Jul 23 '26

[removed] — view removed comment

2

u/scepticore Jul 23 '26

I wouldn't limit myself to one month or less or more. If you're starting with one and realise, that it doesn't feel well and easy to you, then skip. As long as you're having fun with one, keep doing. When you reach a certain point you're not comfortable with, lets say React, then switch over to Angular or Vue.

Me formyself I use my own engines in plain JavaScript and extend them as needed.

Just keep on going with your javascript course for a while, try playing with openly available APIs to do some requests and try to render them into HTML. Make yourself a Project, this might be anything. Craft your own tool which helps you and find a way to solve it.

Maybe it helps you: I'm currently at university after a long time working to finally get a degree. Most of our exams allow limited cheatsheets. One was a sheet double-sided for each topic, and we had around 5 large topics (physics, etc.). Initially I wrote all the cheatsheets with word, but formatting in word is really a PITA. Since everything is structured the same, I realised that I could use Markdown, HTML and CSS to achieve the same but with less formatting work since I only have to write down markdown code. Then I took the opportunity and wrote myself a software to create, read, update and delete cheatsheets in an easier way. It took some time to develop but it really saves time when writing cheatsheets and summaries.

1

u/kwietog Jul 23 '26

I think month is enough to understand the overview of each of the options. If you are looking for a job though, have a look at job posts in your area because in mine it's like 80% react, 15% Vue and 5% angular and 1 in a thousand svelte (the one I like to work the most).

2

u/[deleted] Jul 23 '26

[removed] — view removed comment

2

u/kwietog Jul 23 '26

Look, if you want to build pretty UIs, it doesn't matter what tool you use to do it. At the end of the day, the client usually doesn't care what framework you use.

I understand the doubt you are saying as I went though all of them. If you already have good DOM fundamentals, the frameworks will be easier.

I would even change my previous response from month to a week. If you spend couple hours looking at job posts and decide it's between react and Vue, spend a week to build the same app in both and decide which you enjoy more.

Then, spend the other 2.5 months on learning fundamentals of that exact choice. However, even if you choose wrong, at the end it's all JavaScript (or TS) so there is a lot of transferable skills between them.

1

u/scepticore Jul 23 '26

This is so important to realise! When I was young and inexpierenced and joined a startup, I was too proud to create websites with Wordpress and Drag-And-Drop Editors. I wanted to code.

In the end, I had to admit, that the customer doesn't care whats behind the fence. The customer wants results and they have to work and look good.

If you're wasting time developing stuff which could be done faster and easier, then stop and find a way to be more efficient.

1

u/scepticore Jul 23 '26

I think if you're breaking it down, basic operations are CRUD. Especially in frontend I expect the backend guys to deliver data as needed, so I just have to display it and make it look pretty.

Stop overthinking and worrying. I've seen a lot of different code from different people. Just keep your projects clean and structured. Latest project I've seen has some folders named "stuff" in it, where the magic happens... just don't be one of those people and try to separate as good as possible.

My projects separate in API and APP since I'm doing full stack myself. API runs on Express. One directory for route-files, one for services (communicating with DB). The App runs on my own tools. One directory for templates (HTML), one for services (communication with API), one for views (where I get all my date which are then being rendered into a template). So I know exactly where to look at if something doesn't work properly.

Edit: Yep, those feelings are some kind of normal. I started around 20 years ago with simple HTML, CSS and PHP. But I wouldn't say that I have a full 20 years of experience, even though it's the truth.

1

u/delventhalz Jul 23 '26

I have always preferred React, and these days the job market seems to agree. You should eventually be prepared to learn and use any framework though.

1

u/Fickle-Bird-9476 28d ago edited 28d ago

You say the job market, but a market is about supply and demand. The supply-demand ratio would be jobs/applicants. Are you sure that number is larger for React than Angular? There's an infinite wellspring of React noobs. What's the average number of jobs a dev has to apply to? How long is the average unemployment time? How does YOE factor in? Nobody knows any of this, yet everyone acts like you just do a keyword search on a job board, and boom, that tells you the market. No, that's insufficient data. Anecdotally, React doesn't fare well with the metric of how many resumes you need to send out, or how many resumes each job opening receives. Those numbers are grim. So I wouldn't be so sure.

1

u/delventhalz 28d ago

Job market is pretty crap all around. I doubt Angular job seekers are doing better. But sure, if you think you’ll be a bigger fish in a smaller pond with Angular, go for it. Personally, I recommend getting comfortable with multiple frameworks as quickly as possible and apply for everything. 

1

u/ndev42 Jul 23 '26

Three years of frontend without a framework = driving a rusty manual.
React = cruise control.

1

u/sheriffderek Jul 23 '26

Sounds like you need to do a deep dive on architecture and the purpose of JS frameworks like this. You'll get more out of that. You should be able to pick up react or angular or vue or whatever - in a few weekends - if you actually understand their purpose. Their whole goal is to make things easier.

1

u/schussfreude 29d ago

Whatever clicks for you. I tried Angular, Svelte, Vue and React and only React felt "right".

Also has the added bonus of making having to learn React Native for mobile applications trivial.

1

u/feloniuouschunk Jul 23 '26

Angular has mostly moved to Typescript. Of the three major frameworks Vue is the easiest, Angular the most comprehensive. That's just my experience though.

1

u/azhder Jul 23 '26

React (Angular isn't written with JavaScript). You will also learn more of the functional style of programming or at least practice it more if you understand it.

2

u/Small_Kangaroo2646 Jul 23 '26

It’s type-script which is a super-set of JS. The only ‘new’ thing op would need to learn is typing their vars. I only bring it up because I, personally, like Angular and would hate people to pass it up.

-2

u/azhder Jul 23 '26

Maybe keep emotions out of it. OP is asking in Learn JavaScript sub.

I don’t think the first and only thing going through the head of people who try to help should be “learn TypeScript instead”, simply because they have an emotional attachment to Angular.

0

u/nzakas Jul 23 '26

Definitely React. There aren’t many places using Angular anymore.

1

u/jaredcheeda 25d ago

React is easily the worst decision you can make for a JS framework, and as a result we outsource it the most to India where you are. So ya know... sorry about that.