Check out example codes for "how to add a logo to website icon". It will help you in understanding the concepts better.
Code Example 1
<head>
<link rel="shortcut icon" type="image/x-icon" href="favicon.ico" />
</head>
Learn ReactJs, React Native from akashmittal.com