lukeed / clsx

A tiny (239B) utility for constructing `className` strings conditionally.
MIT License
8.08k stars 141 forks source link

improve performance and readability #86

Closed DubstepQBA closed 8 months ago

DubstepQBA commented 8 months ago

improve performance and readability

lukeed commented 8 months ago

sorry but this is worse performance (no longer reusing variables, for-in for array traversal) and the readability is (subjectively) harder