Check out example codes for "html sticky touch hover". It will help you in understanding the concepts better.

Code Example 1

@media(hover: hover) and (pointer: fine) {
    nav a:hover {
        background: yellow;
    }
}

Learn ReactJs, React Native from akashmittal.com