The ability to reply to discussions is limited to PRO members. Want to join in the discussion? Click here to subscribe now.

Applying conditional styles in React with classSet add-on

Applying conditional styles in React with classSet add-on

2:17
Applying conditional classes can be a real chore in any framework. Luckily for us, React makes it easy with the classSet add-on.
Watch this lesson now
Avatar
egghead.io

Applying conditional classes can be a real chore in any framework. Luckily for us, React makes it easy with the classSet add-on.

Avatar
Esteban Martini

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

HEY, QUICK QUESTION!
Joel's Head
Why are we asking?