-
-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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
How work with local site version without server? #3943
Comments
You have to use a hash history to use a local file. Browser histories don't work without a server. |
I don't think this will work. Although it's possible to create routing configuration that enables the index route to load when the app is served over the The reason navigation fails is that react-router -- like many single-page-app routing modules -- is ultimately built on top of the Web History API. The Web History API is implemented natively in browsers, and it cares about |
You can use a hash history on a local file just fine. We use it in our test suite. Make sure you've configured things correctly. |
@tomprogers, i use hashHistory and this work fine |
Hi!
I try use react router with local version app after build them. Browser open file as link
But router throw 404 error. How i can setting up router fo work with local version site?
repo
Tnx!
The text was updated successfully, but these errors were encountered: