Check out example codes for "css inherit class". It will help you in understanding the concepts better.

Code Example 1

.rounded_corners {
  -moz-border-radius: 8px;
  -webkit-border-radius: 8px;
  border-radius: 8px;
}

#header {
  .rounded_corners;
}

#footer {
  .rounded_corners;
}

Learn ReactJs, React Native from akashmittal.com