Last active
October 22, 2020 10:38
-
-
Save yairEO/105b10b0f13b8f33268ed5feb55108f1 to your computer and use it in GitHub Desktop.
conditional multiple class names
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const cx = (...list) => list.filter(Boolean).join(' ') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://stackoverflow.com/a/64076688/104380
Example with React