Check out example codes for "how to create a hover effect in css". It will help you in understanding the concepts better.

Code Example 1

a:hover {
  background-color: yellow;
}

Code Example 2

.a:hover{background-color: black;}

Learn ReactJs, React Native from akashmittal.com