3 ms·
Which wrapper library around d3 that's declarative would people recommend? I'm thinking something where I can swap the state in React between renders and it upd
by renewiltord 6y ago
Which wrapper library around d3 that's declarative would people recommend? I'm thinking something where I can swap the state in React between renders and it updates intelligently with animations etc.
- iaml 6y agoJust 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.