Check out example codes for "http://127.0.0.1:5500/favicon.ico". It will help you in understanding the concepts better.

Code Example 1

<link rel="shortcut icon" href="#" />

Learn ReactJs, React Native from akashmittal.com