Posts by Levy Mateus M. • 1 point
1 post
-
0
votes2
answers1471
viewsA: How to change color of a div with button click on Reactjs + CSS
Adding styles this way is not very interesting. I may suggest that you create a component for this button and have a state to control whether it is active or not as in the following example code:…