Answer the question
In order to leave comments, you need to log in
How to dynamically change the color of an element in React?
For example, I have 3 red cubes. When I click, I want one to turn blue and the rest to turn red.
what is the correct way to do this in React ?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question