Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

It is not rendering my css file on my 404 page #558

Open
Vishal-beep136 opened this issue Jun 21, 2022 · 1 comment
Open

It is not rendering my css file on my 404 page #558

Vishal-beep136 opened this issue Jun 21, 2022 · 1 comment

Comments

@Vishal-beep136
Copy link

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
@jlgalarza3
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants