3 ms·
Take a look at the parts of the D3 API used here and explain what parts of the React API could be used to replace them. They serve two very different use cases.
by gatherhunterer 7y ago
Take a look at the parts of the D3 API used here and explain what parts of the React API could be used to replace them. They serve two very different use cases.
React has tools for state management, code reuse, routing and other common front-end needs and leaves the DOM content to be decided by the coder with XML-like markup. D3 abstracts over the DOM content to handle the specifics of rendering while the coder focuses on the data.
Pairing D3 with React or Vue is a very common decision. Because this project seems to make little use of React beyond memoization I would think that doing without React would be much more plausible.