3 ms·
Agreed, and I’d add that the React code tends to be more readable than the equivalent D3 code because the nodes can be a pure function of the state and the virt
by paulgb 6y ago
Agreed, and I’d add that the React code tends to be more readable than the equivalent D3 code because the nodes can be a pure function of the state and the virtual DOM will reconcile differences. In D3 the DOM state depends on previous DOM state, so even well-organized D3 code can take a lot of room in your head to understand compared to just looking at a function that spits out a JSX element.
- jiofih 6y agoFor a reason. You can’t achieve a quarter of what D3 can with that approach, especially when it comes to transitions and animations.