Check out example codes for "how to highlight input on focus with box shadow". It will help you in understanding the concepts better.

Code Example 1

.form-section-input {
     transition: box-shadow 300ms ease-out;
}

.form-section-input:focus {
   box-shadow: 0px 0px 5px var(--light-blue-bg-color);
}

Learn ReactJs, React Native from akashmittal.com