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

Code Example 1

/*This will only work if the last child of someEID has 
the class .myclassName 
if the last child does not have class name us js*/
#someEID .myClassName:last-child {
    background: blue;

Learn ReactJs, React Native from