6 ms·
I wrote a react component to map react props to D3 accessor functions, and then use the react lifecycle functions to trigger D3 redraw. http://bl.ocks.org/cpap
by snappy173 10y ago
I wrote a react component to map react props to D3 accessor functions, and then use the react lifecycle functions to trigger D3 redraw.
http://bl.ocks.org/cpapazian/6228888157c39be85e9c http://bl.ocks.org/cpapazian/6228888157c39be85e9c (please excuse the coffeescript)
However, it looks like the work to modularize D3 will make it much, much easier to have the render function produce SVG markup directly.