3 ms·
Just use d3 directly in react, rendering svg is ok for most cases. You would want to ignore all the dom manipulation parts of d3, but otherwise they work well t
by iaml 6y ago
Just use d3 directly in react, rendering svg is ok for most cases. You would want to ignore all the dom manipulation parts of d3, but otherwise they work well together.
- yoran 6y agoIndeed. When you Google for "React/Vue/Ember D3", the tutorials always use the DOM manipulation layer of D3. But every front-end framework already comes with a great reactive system to ensure the DOM is in sync with the data. And those are a lot easier to use than D3's in my opinion. The only tutorial that doesn't do this and that "gets" it is one by Amelia Wattenberger: https://wattenberger.com/blog/react-and-d3 https://wattenberger.com/blog/react-and-d3. I recommend this tutorial to understand how to use D3 in React.