Hacker News new | ask | show | jobs
by jimbobbango 2005 days ago
D3 js is well known, but it used to not work with React because of Reacts's virtual dom stuff, D3 works with the dom directly i beleive, i would assume there is an npm package that allows u to work with both,

React Charts library was nice if i remember correctly

2 comments

Get React to give you a DOM reference and then run the D3 code with it during a post render callback or effect.
You can just use D3 for the layout work and render with an SVG in react and it works really well.
its been a few years since i tried, thanks for the tip