Conditional classes with classnames

I’m not a React expert but I’ve worked with the framework in the past and I have to say that classnames is something that helps you a lot.

Code is better than words. So, I used to do something like this