Can anybody explain to me? I had such code
<Card className={clsx(classes.card, noShadow && classes.noShadow)}>
It was recommended to me to use it in this way
<Card className={clsx(classes.card, {[classes.noShadow]: noShadow})}
Can anybody explain to me in-depth how this code works {[classes.noShadow]: noShadow})
I do know JavaScript topic dot notation and bracket notation. But still, I couldn't figure out how this {[classes.noShadow]: noShadow}) parsed inside styles.