You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe what's incorrect/missing in the documentation
A topic that's missing in the docs from my point of view is the deployment.
Using React Router locally is pretty straight forward.
But implementing and getting an app working in production isn't.
Building the app from the tutorial works well locally.
Once you go to production, you'll face routing issues because react router does the client-side routing.
But the server doesn't know about the routes.
Inspiration for docs about building for production can be found in the docs of viteJs.
From my point of view they did a great job.
Maybe one could implement something similar for the docs of react router (or at least mention the expected issue that react router doesn't work in production out of the box and give some sources to handle production well).
This discussion was converted from issue #10975 on November 01, 2023 01:45.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Describe what's incorrect/missing in the documentation
A topic that's missing in the docs from my point of view is the deployment.
Using React Router locally is pretty straight forward.
But implementing and getting an app working in production isn't.
Building the app from the tutorial works well locally.
Once you go to production, you'll face routing issues because react router does the client-side routing.
But the server doesn't know about the routes.
Inspiration for docs about building for production can be found in the docs of viteJs.
From my point of view they did a great job.
Maybe one could implement something similar for the docs of react router (or at least mention the expected issue that react router doesn't work in production out of the box and give some sources to handle production well).
Beta Was this translation helpful? Give feedback.
All reactions