Check out example codes for "on hover chang only border color of a button css". It will help you in understanding the concepts better.

Code Example 1

.box:hover {
   border-color: purple;
}

Learn ReactJs, React Native from akashmittal.com