0

I have one application in react which are working on fine and I am developing new app in react and its working in local machine when I uploaded on server it not worked when I added hash after domain it working, the old app also having hash in url. I did not get how to add the hash in url for every page. If I open url it will automatically add hash like this

www.example.com/#/signin
www.example.com/#/about

1 Answer 1

1

Change <BrowserRouter> to <HashRouter>

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.