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
workaround people have came up with seems to be to use HashRouter instead. However documentation says "We strongly recommend you do not use HashRouter unless you absolutely have to" without any further context.
So I would like to get information about:
what is the recommended way to use react router with electron?
what is the drawback of using HashRouter?
is it intended that BrowserRouter fails with electron?
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
-
I am trying to port a webpage to electron which uses BrowserRouter
this fails with "[react-router] Location "/path/to/index.html" did not match any routes"
which seems to be a common issue:
https://stackoverflow.com/questions/36505404/how-to-use-react-router-with-electron
workaround people have came up with seems to be to use HashRouter instead. However documentation says "We strongly recommend you do not use HashRouter unless you absolutely have to" without any further context.
So I would like to get information about:
Beta Was this translation helpful? Give feedback.
All reactions