2 ms·
> I.e. the data calculations and the drawings shouldn't be done in the same framework (thats were React comes into play). I used to think so too; but I don't a
by azangru 3y ago
> I.e. the data calculations and the drawings shouldn't be done in the same framework (thats were React comes into play).
I used to think so too; but I don't any longer. Rendering in React is fairly expensive. It may easily turn out that direct DOM manipulation is better suited to visualizations than DOM manipulation through React.
- jdonaldson 3y agoData calculations and rendering should be done in the same framework if you wish to optimize interactivity.
- littlecranky67 3y agoI get your point and tend to agree; the issue I have is that d3 drawing and updating, along with internal events (i.e. d3 custom dragndrop implementation) don't play nicely together with React (or Angular or Vue, for that matter). But I admit, I wouldn't know how to improve on that.