Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Advantages and Disadvantages of using ReactJS [closed]

I am new to using React for development.

Can someone list the advantages and disadvantages in using ReactJS. Are there any performance issues with using this library for large projects.

like image 259
XpertSiji Avatar asked Feb 10 '15 21:02

XpertSiji


People also ask

Why we need to stop using React?

Due to the over-hyping and overuse React makes our jobs much harder at the end of the day when we're developing large complex applications with multiple teammates. When you use React for larger applications and have so many people working on them they get out of hand fast.

What is ReactJS and advantages of ReactJS?

What is React JS? React JS is basically a JavaScript library built and maintained by Facebook. According to the creator of React JS, Jordan Walke, React is an efficient, declarative, and flexible open-source JavaScript library for building simple, fast, and scalable frontends of web applications.

What are the pros and cons of using React JS?

They not only make the coding life easier, but they also speed up the entire development process making React one of the best technologies available. When it comes to listing pros and cons, this one may quite stand out as it’s not a technical advantage, but not mentioning it wouldn’t do justice to React JS.

Why should you use React for web development?

In React, you can have similar code for both the client-side and server-side of an application. That’s why any website with React has high-speed advantages, making it attractive to crawlers, users, and developers alike. Furthermore, it’s easy to test because React can treat views as functions of a specific state.

Is the pace of development a disadvantage in react JS?

The developers who see the pace of development as a disadvantage would argue that they have to constantly relearn how to work with React JS, which is difficult to keep up with. It should be noted, though, that React’s core API has gotten a lot more stable in recent years.

What are the advantages of react over jQuery in front end development?

ReactJS eliminates the use of any complex framework like jQuery. It is an adequate tool to create outstanding front-end designs with the high-speed of a web application, perhaps it is the biggest advantage of React over jQuery. SEO is the pillar of a successful business.


1 Answers

Advantages of using React:

  • easy to know how a component is rendered, you just look at the render function.
  • JSX makes it easy to read the code of your components. It is also really easy to see the layout, or how components are plugged/combined with each other.
  • you can render React on the server-side.
  • it is easy to test, and you can also integrate some tools like jest.
  • it ensures readability and makes maintainability easier.
  • you can use React with any framework (Backbone.js, Angular.js) as it is only a view layer.

What is not so good about React?

  • it is only a view layer, you have still to plug your code for Ajax requests, events and so on. Some people get surprised by that.
  • the library itself is pretty large.
  • the learning curve can be steep.

If react-native is really how it was described, react is going to become even bigger.

Performance wise, it is really good as it relies on a virtual-dom to know what is really changing in your UI and will re-render only what has really changed. It does have trouble with very large, slightly changing, lists of children (2000 <li> test), but can be optimized simply.

If you are not sure, just think about the big projects using React: instagram, hipchat, facebook chat and so on.

Some resources:

  • React for the stupid people
  • Rebuilding Hipchat with React
  • Why React?

And probably one of my favorite blog post Why React is awesome?

like image 98
Jeremy D Avatar answered Oct 21 '22 13:10

Jeremy D