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

If I have 4 react components (let's say some custom buttons), how do I render them in a way that the last pressed is on top?

$
0
0

I have been trying to do this but I just can't figure out how. I'm thinking about putting all those 4 buttons components in an array and then change the position to the 0th index if it was last pressed and then moving all the buttons to their index+1.

Is there a more react like way to do this?


Viewing all articles
Browse latest Browse all 6290

Trending Articles



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