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

How can i stop the color from updating, i am using a random color generation but i would like to save that color in a state how could i do that?

$
0
0

I am trying to make a sort of team bracket generator in react native and I keep getting this issue where the color is updating each time I add a new object to the array, I know that the render is updating each time you do a action, the question is how can I stop it from doing so ?

enter image description here

enter image description hereenter image description here


Viewing all articles
Browse latest Browse all 6287

Trending Articles