Check out example codes for "css change class name start with". It will help you in understanding the concepts better.

Code Example 1

/* CSS pure */
div[class^='myclass'], div[class*=' myclass']{
    color: #F00;
}

/* css change class name start with styled components */
& [class^='Pagination-activeButton'],
[class*=' Pagination-activeButton'] {
  span {
    color: #fa751f !important;
  }
}

Learn ReactJs, React Native from akashmittal.com