Check out example codes for "two classes css modules". It will help you in understanding the concepts better.

Code Example 1

<div className={[styles.App, styles.bold, styles['d-flex-c']].join(' ')}>

Learn ReactJs, React Native from akashmittal.com