DEV Community

Discussion on: Why choose React for frontend?

Collapse
 
sroehrl profile image
neoan

Due to its dominance I work a lot with React. However, I personally disagree with a few key points of your post:

  1. It's easier to learn

How so? While Angular has indeed quite a learning curve, most other libraries and frameworks are easier to tackle. Have a look at something like Alpine JS for example. Even Vue is easier to conquer.

  1. Offers fast rendering

Well, compared to what? It neither shines against vanilla not other frameworks.

  1. Reusable components

Again a mute point. Component based structure is what EVERY big name out there does. So what is the difference? Does Angular not have reusable components? Or Vue? Or Lit?

I guess my problem is mostly that you describe things that are either true for more or less all frameworks or that your arguments aren't accurate or relevant. This in turn leads me to believe that you lack in-depth experience with other frameworks. That itself isn't an issue, but it's misleading in the sense that you explain React from a perspective of comparing options.

Collapse
 
ashkanmohammadi profile image
Amohammadi2

Actually one of the reasons why I believe react is better than other frameworks is that it has a larger community support and, great development tooling and it has tons of different libraries for every use case. Also I should mention that react has maintained a much more stable API compared to Angular and Vue at this point.

From my perspective, these things make react the best choice for enterprise web application development.

But, react has some trade-offs too. Apart from the advantages of react that were mentioned above, react has some problems too:

  • Too much boilerplate code to write
  • Really complicated state management strategies
  • Too easy to abuse its features and develop applications in a wrong way

Sometimes, it's worth to use react and sometimes it's not. I believe choosing a web app framework depends on the type of project. The framework that fits your project's needs is the perfect choice.

Collapse
 
anubhav0fnu profile image
Anubhav

So which framework you vouch for?

Collapse
 
siy profile image
Sergiy Yevtushenko

Take a look at Solid.js. youtube.com/watch?v=Xw9XMNn2k0o

Collapse
 
sroehrl profile image
neoan

Well, that depends on the situation. I didn't intend to imply that React isn't a good choice for many cases. However, if I was told I can only choose one framework, then I would probably go with Vue

Collapse
 
elefint profile image
elefint

I would agree, I recently started dabbling with React / Angular / Vue. Vue was much easier to learn for a complete beginner.