Monday, May 20, 2024
 Popular · Latest · Hot · Upcoming
127
rated 0 times [  134] [ 7]  / answers: 1 / hits: 41872  / 9 Years ago, tue, february 10, 2015, 12:00:00

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.


More From » performance

 Answers
0

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:





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


[#67879] Sunday, February 8, 2015, 9 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
kirstendevanb

Total Points: 585
Total Questions: 93
Total Answers: 94

Location: Zimbabwe
Member since Thu, Jul 21, 2022
2 Years ago
;