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 ...