I wish this helpful for you Use a URL Shortening service. A service that handles fragment identifiers, like TinyURL, can solve this for you. For example, "http://example.com/#example" becomes "http://tinyurl.com/85rtaym", and works as expected.
Redirect to a URL fragment resets session on Chrome (Node/React/React-Router)
seems to work fine Ack! Searching through closed issues in the Github repo, I see that I had left in my tags. Wrap your react-router v4/v5 routing with ConnectedRouter and pass the history object as a prop. Remember to delete any usage of BrowserRouter or NativeRouter as leaving this in will causeproblems synchronising the state.
Configuring react-router-dom generates an error: Invariant failed: You should not use <Link> outside a <Router&
With these it helps Remove this line: ReactDOM.render(, document.getElementById('root')); This line is likely the source of the error, since your component tree contains a , and you're rendering it without in this instance.