After reviewing several blog posts I'm left without a satisfactory answer.
I've seen posts that have react create a component and d3 handles everything inside that component (enter, update, exit) and I've seen posts that recommend having react create and delete nodes inside the SVG and have d3 handle changing attributes on those nodes.
I'm still pretty new to react but I have a ton of d3js experience. Why would I want to give React control of the SVG nodes instead of letting d3 handle the visualization entirely.
What are the pros and cons?
I know that react uses a virtual dom and d3 uses something similar (I think it's called Smash).
For contextual information here are a few blog posts that I'm referencing:
You are correct in that there is no consensus on this issue. I spent a lot of time investigating this myself a while back and here is my conclusion:
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.