I am using React and a very simple CSS modules setup with webpack. Also using BEM for class names.
Classnames with dashes are not valid unless in string form, and I have not yet found a string version that does not repeatedly reference the css import statement for each class entry.
Both of these are not ideal and I would like to avoid using a library.
<div className={classNames({[styles.foo]: true, [styles.bar]: true})}>
<div className={[styles.foo, styles.bar].join(' ')}>
These do not work
className={styles['one two']}
className={styles['one', 'two']}