lukeed/clsxPublic

A tiny (239B) utility for constructing `className` strings conditionally.

syntax question

LO

Hi,

I'm confusing, why this line is working :

``` clsx( true && 'c2' ) ```

and this is not :

``` clsx( 'c2' && true ) ```

Thanks for help

  1. lokomassclosed2 years ago on GitHub