+ 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
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.