DEV Community

Discussion on: You don't know the classNames library

Collapse
 
alaindet profile image
Alain D'Ettorre

This library and its analogs are great because they solve a very common and framework-agnostic problem, which is conditional styling via CSS classes based on state. For example, Angular solves that natively via [ngClass] which does exactly what the classNames package does, so it follows logically that React, being extremely popular, must have it too, be it integrated in the library or via third-party packages like this.