react-snap icon indicating copy to clipboard operation
react-snap copied to clipboard

It is not rendering my css file on my 404 page

Open Vishal-beep136 opened this issue 2 years ago • 1 comments

Bug Report

I have 404 page in my react Js app

My App.js

      ...
      <Routes>
        {/* ....*/}
        <Route path="/" element={<Home />} />
        {/*....*\}
        <Route path="*" element={<PageNotFound />} />
      </Routes>
     ...

When I am hitting my localhost domain - http:localhost:3000/imdb/asfsdsdsdsdds

This is rendering html but not loading css!

I'm building project by following commands

npm run build

Vishal-beep136 avatar Jun 21 '22 09:06 Vishal-beep136

Hello, maybe this article will solve your problem. https://www.joshwcomeau.com/react/the-perils-of-rehydration/

jlgalarza3 avatar Jun 27 '22 16:06 jlgalarza3