lukeed / clsx

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

Why should i use this? #60

Closed kilimanjjjaro closed 1 year ago

kilimanjjjaro commented 1 year ago

Hi, maybe this is not the normal message you expect in Issues but there is no tab for discussions in this repository.

My question is: Why should I use CLSX instead of just applying conditional classes with template strings? Is it because the syntax is neater or it has better performance?

Goodbye :)

UPDATE: Yap, has better performance. I just saw the benchmarks, sorry.