How add raw html file to public folder in create-react-app

Viewed 1431

I have an react application created using create-react-app.I have included a static html page in public.

I'm want to use that html in the same application using iframe.

The iframe with covid.html is not loading after the build.

-- Public

  • covid.html

enter image description here

After the build the iframe url looks like this

<iframe src="/covid.html"/>

which is considering the html file as 'www.mydomain.com/covid'

How do i use the html file in the Iframe in public folder?

I use BrowserRouter.

TIA

0 Answers
Related