Check out example codes for "check browser on css". It will help you in understanding the concepts better.

Code Example 1

// Render only on Firefox
@-moz-document url-prefix() {
    .whatever-class {
        padding-top: 10px;
    }
}

Learn ReactJs, React Native from akashmittal.com