4 ms·
I've recently been experimenting with how best to leverage the wealth of knowledge which has gone into d3 within the context of React, where the conventional se
by mambodog 11y ago
I've recently been experimenting with how best to leverage the wealth of knowledge which has gone into d3 within the context of React, where the conventional selection-driven APIs become a hinderance rather than a help.
Around that time, I noticed the new modular repos on the d3 Github org[1] coming together, and have since been watching with great anticipation. I'm glad to see d3 evolving for a new world where its excellent, fine-tuned collection of math and drawing functions work in concert with your rendering framework of choice.
[1] https://github.com/d3 https://github.com/d3
- mambodog 11y agoFor example, here's something pointless I threw together combining d3-shape, d3-scale and react-motion: https://jsbin.com/mehata/edit?js,output https://jsbin.com/mehata/edit?js,output
- snappy173 11y agoI made a react wrapper component for using d3 style components within react apps. It uses the react lifecycle methods instead of render ... http://bl.ocks.org/cpapazian/6228888157c39be85e9c http://bl.ocks.org/cpapazian/6228888157c39be85e9c Scroll to the bottom for the wrapper class. Please excuse the coffeescript.