Closed chentsulin closed 3 years ago
https://github.com/Olical/react-faux-dom#with-animation-helper
If we want to provide some d3 feature in event handlers, for example:
function onWordMouseOver(word) { select(this).style('fill', 'orange'); }
We should use withFauxDOM HoC
withFauxDOM
Thank you @chentsulin, please let me know when the new version is available
regards
I just realize we should not encourage this kind of d3 side effect usage in the react-style event handlers.
https://github.com/Olical/react-faux-dom#with-animation-helper
If we want to provide some d3 feature in event handlers, for example:
We should use
withFauxDOM
HoC97, #106