2 ms·
I don't know how React does it so it was a genuine question. I'm assuming they do some smart diffing to be more efficient. It'll be irrelevant for most apps bu
by seanwilson 7y ago
I don't know how React does it so it was a genuine question. I'm assuming they do some smart diffing to be more efficient.
It'll be irrelevant for most apps but I'm curious how much less efficient all this is compared to (in CPU time, not developer time) updating the DOM directly e.g with:
document.querySelector('.timer').textContent = "5 seconds"