Comments (2)
@lukeed thanks for explanation :)
from clsx.
Hey, thanks!
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.
Hope that clears things up :)
from clsx.
Related Issues (20)
- When does the 228B figure come out from HOT 1
- Avoid having to use esModuleInterop HOT 4
- Empty `class` attribute due to empty string HOT 1
- Classes are not being over written HOT 2
- Will this library still be maintained? HOT 1
- Undefined class name gets printed HOT 2
- Multiple issues with ES module HOT 5
- Updated benchmarks? HOT 1
- Add support for objects with `toString` methods HOT 1
- Combine variables without spaces HOT 3
- Why should i use this?
- Supporting unwanted undefined in object HOT 1
- clsx is not a function HOT 2
- Add documentation on usage with Tailwind CSS HOT 2
- What is the purpose of this? HOT 5
- CSS Variables not working in clsx HOT 3
- Module format error on import with vitest HOT 3
- TypeScript Issue HOT 2
- "This expression is not callable." error when using TypeScript with moduleResolution "node16" or "nodenext" HOT 2
- Tailwind regex flags unreachable paths HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from clsx.