3 ms·
More's the pity. Now we just constantly delete whole branches of elements from the DOM and recreate them with react.js instead, which is far less efficient. Rea
by nuc1e0n 4y ago
More's the pity. Now we just constantly delete whole branches of elements from the DOM and recreate them with react.js instead, which is far less efficient. React.js would probably cause your computer to use measureably more electricity even.
- Gigachad 4y agoI really don't think it's that big of a deal compared to other things. JS based animations and scroll effects were the real issue. Now that CSS supports these things with GPU acceleration. React DOM changes are usually pretty insignificant unless something has gone wrong and gets stuck in some kind of loop.
- frosted-flakes 4y agoThat's not true, actually. React will re-use DOM elements wherever possible, even replacing the contents or individual attributes, or changing the order. But manual DOM operations with jQuery tend to be much more coarse-grained simply because they're so tedious, so what you say is likely completely opposite of the truth.