In react using css-modules i'm assigning classes to components like this
import styles from './styles.module.css'
const SomeComponent = () => (
<ChildComponent className={styles.SomeClass + ' ' + styles.AnotherClass} />
)
or i can assign like this
<ChildComponent className={`${styles.SomeClass} ${styles.AnotherClass}` />
Would you suggest the way how to transform styles variable, that we could assign classes like this
<ChildComponent className={styles.SomeClass.AnotherClass.OneMoreClass />
And of course we could use one class or two or as much as possible