Quantcast
Channel: Active questions tagged react-native+typescript - Stack Overflow
Viewing all articles
Browse latest Browse all 6287

How can you use useState to update a component?

$
0
0

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.


Viewing all articles
Browse latest Browse all 6287

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>