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

Code Example 1

tr:nth-child(even) {
  background-color: #f1f8ff;
}

Learn ReactJs, React Native from akashmittal.com