'how to get double class element in scss file?

I have

import classes from '../scss/UICarousel.module.scss'

<div className={classes['UICarousel']}>
    <div className={classes['UICarousel__img prev']} key={prev} >
            {img[prev]}
    </div>
</div>

name.module.scss: (package 'sass')

.UICarousel{
     &__img {
       //avaliable
      }
     &__img .prev {
       //not avaliable
     }
}

How can i get that element with two classes?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source