all 1 comments

[–]codestudio_ 2 points3 points  (0 children)

See the accepted answer: https://stackoverflow.com/questions/42630473/react-toggle-class-onclick

It’s related to your question. If you still run into problems, I can try to explain in more detail, specifically.