+ 1

I want event to change color p blue inside div group. Thanks you sir.

Event to change color p. https://code.sololearn.com/WpDR8lkgkc76/?ref=app

17th Sep 2021, 6:29 AM
Malick Diagne
Malick Diagne - avatar
1 Réponse
+ 1
My answer is too long to put directly here so I shared it on this other site: https://ctxt.io/2/AACgS_dtFA The biggest single problem with what you were trying to do was trying to do DOM manipulation directly when React wants developers to take a more indirect approach. With ReactJS, you are supposed to update state and let ReactJS handle updating the DOM directly. Try to copy my solution quickly because ctxt will remove the solution within 24 hours of me creating it.
24th Sep 2021, 4:38 AM
Josh Greig
Josh Greig - avatar