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

Using the classnames library for conditional CSS in React

Using the classnames library for conditional CSS in React

4:52
Classnames is a simple yet versatile javascript utility that joins CSS class names based on a set of conditions. We are going to build a simple toggle switch that relies on state to determine what CSS classes will be applied.
Watch this lesson now
Avatar
egghead.io

Classnames is a simple yet versatile javascript utility that joins CSS class names based on a set of conditions. We are going to build a simple toggle switch that relies on state to determine what CSS classes will be applied.

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