Check out example codes for "selecting last child css". It will help you in understanding the concepts better.

Code Example 1

p:last-child {
  font-size: 0.75em;
}

Learn ReactJs, React Native from akashmittal.com