Answer the question
In order to leave comments, you need to log in
How to add a class depending on a condition in react?
There is a variable that can be true or false, you need to add a class depending on this variable or not.
Tried like this, className={{[myClass]: isRender}} doesn't work
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question