© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2021
E. ElromIntegrating D3.js with Reacthttps://doi.org/10.1007/978-1-4842-7052-3_5

5. Integrating State Management

Elad Elrom1  
(1)
New York, NY, USA
 

In the previous chapter, I showed you how to create simple charts using React function and class components and D3. In the last example, we created a histogram by integrating D3 and React as well as adding other React libraries into the mix such as Material-UI and Jest.

In the histogram, we retrieved the data from the App.tsx parent component so the data could be shared between multiple components.

In this chapter, we will take this chart a step further. We will integrate React state management into the mix so we ...

Get Integrating D3.js with React: Learn to Bring Data Visualization to Life now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.