DEV Community

Cover image for Why A Developer Should Learn React.js in 2021?

Why A Developer Should Learn React.js in 2021?

jobpick.in on August 03, 2021

Why A Developer Should Learn Reactjs? Learning new skills is always nice but you should learn something that actually will turn out fruitful in fu...
Collapse
 
davenguyenhuy profile image
Nguyen Huy Cuong • Edited

I think, spaghetti code comes from bad developers, not from any languages/libs/frameworks.

Collapse
 
hasnaindev profile image
Muhammad Hasnain

Believe it or not, I wrote a post arguing against React and other frameworks, but since it is so popular, the main focus became React. Honestly, people were out for my blood. It wasn't a pleasant experience and I removed the post.

Newbie developers, I don't blame them. They are jumping onto the hype-train because of the "senior" developers that are utterly biased and can't see beyond their opinions. They're making the community toxic.

Collapse
 
soulsbane profile image
Paul Crane

Ah, shouldn't have removed it. I would have liked to read it. Just ignore the comments as it's just your opinion. If people don't like it that is their problem :)

Collapse
 
prateekoraon profile image
Prateek Oraon

I worked with Angular for a year and now I am facing problems joining new companies.
Everyone today wants React.

Collapse
 
jobpick profile image
jobpick.in

Don't lose hope, as a developer you have to update yourself!👍🏻

Collapse
 
davenguyenhuy profile image
Nguyen Huy Cuong • Edited

total agreed, I can work with both React and Vue, if some day my job requires me to learn Angular, I will be ready, it's all about javascript and the DOM :D

 
davenguyenhuy profile image
Nguyen Huy Cuong • Edited
  1. Every codebase will easy become a mess with complicated-logic and low-scale strategy, React hooks help us easier to build component, it doesn't mean react class component can not expand, it's just a update of react like VueJS composition API (I see it's just same idea, structure compare to hooks).
  2. React DevTools just shows us the truth of our project, using js-frameworks means you have to deal with so much abstract layers, you can debug every things in project, it works well everyday, its just like you debug html element and that's why its not problem. btw, you and me can use anything we love and frameworks war means nothing. They are just tools to help us solving problems, if you understand one enough, you can do everything with them.
Collapse
 
raibtoffoletto profile image
Raí B. Toffoletto

Technology will change through the years. We just need to adapt, and spaghetti code can happen in any language/framework.
People think of JavaScript as a bad language... I think it is just different, it's more dynamic so demands more self strictness and cleaness to write good code. I've seen spaghetti code in Java, C#, Python.... I think we should be aware of other tech available and understand their strengths and drawbacks because in the end they are all tools. My first OOP program was a mess.... as was my React, till I got into it deeper and learn how to better code for that language/framework. Don't hate on different techs, just know that there's not only one source of Truth. jQuery is still by far the most used JavaScript framework on the web. 😉

Collapse
 
devbyrayray profile image
Dev By RayRay

In the end, it doesn't matter if you pick React, Angular, Vue, Svelte, or jQuery.
Every application starts small and well thought, but eventually, it will grow into a large codebase and complexity. You can't avoid that.

There is no way that React, Angular, Vue, or Svelte is better than the other. They are maybe more suitable for different scenarios.

Yes, React is simple to start. It offers a lot of freedom if you compare it to Angular. There is a lot of freedom to pick other libraries in combination with React, but this comes with a significant amount of responsibility. Next to the responsibility, not every React developer will use the same thing for state management. So the knowledge is more widely spread.

Compare that to Angular. Angular is a framework with a lot of things in it. It offers less freedom but takes responsibility for you instead of moving that to you. Most developers that are using Angular are familiar with the same things (some details will differ).

So what is the best framework? It's up to you! It's up to the company you are working for and the application your building.

But even though the popularity will differ, there is no framework/library to rule them all 😉

Collapse
 
coldlombax profile image
John

Sorry, unrelated to the OP but a lot of hate for react, I'm a beginner so I don't know an awful lot; however, the extensive amount of content I've found for react has made me a better JS developer.

On the other hand, I really like Angular and want to use it more. If there's a lot of hate for react, how does angular sound?

Collapse
 
juniordevforlife profile image
Jason F

I think the same could be said for Vue 2. The components start off small, then blow up. This is partly due to the Options API. I believe the introduction of the Composition API in Vue 3 will aid in writing readable and maintainable components.

Collapse
 
ivangcode profile image
ivangcode

You have a point! Thank you for sharing. 😁

Collapse
 
jobpick profile image
jobpick.in

👍🏻😊

Collapse
 
cenacr007_harsh profile image
KUMAR HARSH

I love React 🙌

Collapse
 
jobpick profile image
jobpick.in

👍🏻😊

Collapse
 
sparkalow profile image
Brian M.

I know, I know.... I just hate React. Maybe I'll stick to dev jobs that don't work with javascript or browsers.