P
P
Pavel Khokhlov2021-07-05 10:04:58
React
Pavel Khokhlov, 2021-07-05 10:04:58

GH-PAGES what's wrong?

Guys, I need help, I made an application on react, I run it from vs-code, everything works, the page is updated. Uploaded the project to gh-pages. The application starts and works, but when the page is refreshed, an error 404 falls out. How can this be fixed? What could I be missing?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2021-07-05
@Seasle

If using react-router-dom, then replace BrowserRouterwith HashRouter.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question