Check out example codes for "how to set favicon". It will help you in understanding the concepts better.

Code Example 1

<link rel="icon" href="image.jpg" type="image/jpg">

Code Example 2

<link rel="shortcut icon" type="image/jpg" href="/favicon.jpg"/>

Code Example 3

<link rel="icon" type="image/png" href="/favicon.png"/>

Learn ReactJs, React Native from akashmittal.com