Can't load file and assets in public dir

I have this code in my ViewPage.tsx and favicon file in public/

<img src="favicon.png" alt="Favicon" />
<link rel="icon" type="image/png" href="/favicon.png" />

but it not loaded and show the alt string

try this

<link rel="icon" type="image/png" href="favicon.png" />
<img src="/favicon.png" alt="Favicon" />

https://redwoodjs.com/docs/assets-and-files#example-adding-your-logo-and-favicon-to-webpublic