I have a segmented control library and a graph library that I want to use the tickFormat
component from. I'd like to use both these libraries to create an axis-changing system. For example, if I click Month on the segmented control, the graph should update its axis showing all the months. Is there a way to do this? I was thinking there was a way to use useState
to update the tickFormat
component.
↧
How can you use useState to update a component?
↧