You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Classcat only works with a single parameter, which is an array of your values. This means it is 100% not compatible with classnames usage.
Clsx is a complete drop-in replacement for classnames. And if you look at my benchmarks (which are classnames' benchmarks) you'll see that Array-values are the worst case scenario for clsx. So what you're seeing is my worst case pinned against classcat's only case.
Hey,
What's the difference with classcat package? It was also released as a faster/smaller/esm ready version of
classnames
a year ago.Why another package with same purpose? It even has a benchmark where
clsx
seems to be many times slower. 🤔Thanks
The text was updated successfully, but these errors were encountered: