4 ms·
I totally agree with you. I think this guy states it pretty well when it comes to React vs. VanillaJS. There is no doubt that React.js is a great approach towa
by fingerbibing 9y ago
I totally agree with you.
I think this guy states it pretty well when it comes to React vs. VanillaJS.
There is no doubt that React.js is a great approach towards managing state in the view layer of a browser application. However, from my own limited experience as well as just comparing raw numbers from time spent in rendering to the amount of memory consumed, there is a clear price to pay in any convenience gained from a library like React. From a pure performance perspective it does appear there may be some merit in evaluating a pure JS DOM approach to a given problem. However, from the perspective of managing a team of developers who want to deliver a large amount of maintainable code, there can be a clear advantage to leveraging libraries and frameworks such as React, Polymer, Angular, etc.
https://objectpartners.com/2015/11/19/comparing-react-js-performance-vs-native-dom/ https://objectpartners.com/2015/11/19/comparing-react-js-per...
- mercer 9y agoHave you looked into Preact? Aside from the convenience of being (almost) a drop-in replacement for React, I recall it was also supposed to be much more performant. While I'm sure pure JS DOM could eke out even better performance, it's possible that compared to Preact (or some other fast VDOM implementation like mithril), the benefits are not worth it anymore. (I'm not sure of any of this though, so I'd love to hear others, who have kicked the tires, weigh in.