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

Code Example 1

tr:nth-child(even) {background: #CCC}
tr:nth-child(odd) {background: #FFF}

Learn ReactJs, React Native from akashmittal.com