Check out example codes for "css all ids starting with". It will help you in understanding the concepts better.

Code Example 1

[id^=product]

Code Example 2

[id^="product"] {
  ...
}

Learn ReactJs, React Native from akashmittal.com