lukeed / clsx

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

syntax question #83

Closed lokomass closed 9 months ago

lokomass commented 9 months ago

Hi,

I'm confusing, why this line is working :

        clsx(
          true && 'c2'
        )

and this is not :

        clsx(
          'c2' && true
        )

Thanks for help