3 ms·
> React never claimed performance, and the virtual DOM is quite wasteful. Any direct manipulation library will perform better. React's performance (in large pa
by Drew_ 6y ago
> React never claimed performance, and the virtual DOM is quite wasteful. Any direct manipulation library will perform better.
React's performance (in large part because of it's virtual DOM) over Angular was a common benefit cited in it's rise to fame. Indeed no one ever claimed React was somehow faster than the document API (or even JQuery) and that isn't what I'm saying either. Whether or not you think the virtual DOM is wasteful in 2021 is a separate opinion and even Svelte devs admit the virtual DOM approach is usually fast enough.
> A base React application easily crosses the 200KB gzipped mark.
I didn't bootstrap a CRA app to check its full size, but considering a hero image alone can easily be larger than this, it still stands that React is certainly not "bloated".
- jiofih 6y agoThe mating call of all react devs - “but what about the images”. Who said a 100KB hero image was a good idea either? It doesn’t excuse dropping a 1MB (when executed) bomb of JavaScript to deliver a blog post and making mobile and low speed users suffer. It’s also established that byte per byte, JS is way more costly to download, parse and execute than images, the comparison itself is dumb.
- thrower123 6y agoBeing faster and smaller than Angular isn't much of a feat...