Applying conditional classes can be a real chore in any framework. Luckily for us, React makes it easy with the classSet add-on.
According to the React docs, classSet
was deprectated in favor of classnames.
There is a Egghead.io lesson about it: Using the classnames library for conditional CSS in React. Would be cool remove this lesson or add a message pointing out about the new lesson