3 ms·
> huge performance benefits in letting only React control the DOM That cannot be true. D3 is directly optimized for efficient updates, vs the comparatively ine
by jiofih 6y ago
> huge performance benefits in letting only React control the DOM
That cannot be true. D3 is directly optimized for efficient updates, vs the comparatively inefficient virtual dom + diffing. Every performance oriented tool actually skips the react rendering lifecycle (even redux does that).
Unless, of course, you’re triggering re-renders of the element D3 is controlling, which should not be the case.
- tracyhenry 6y agoFirst, I don't have numbers so everything is speculation. Second, I didn't say that pure React is faster than pure D3. Instead I said that pure React could be faster than React + D3 (using Ref). See https://news.ycombinator.com/item?id=26630618 https://news.ycombinator.com/item?id=26630618 for the reasoning.