How to change style of a button on click in react?

Posted by Jennifer | Updated on

How to change style of a button on click in react? You can try to use state to store the color. Maybe this would give you the idea how to solve the problem:

Here is live demo.


If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.

Related Questions & Answers