React-router urls don't work when refreshing or writing manually or pasting- solved - React

alidhuniya

Ali Hussain Dhuniya

Posted on September 9, 2020

React-router urls don't work when refreshing or writing manually or pasting- solved - React

In this video, I will show you how I solved this problem which I recorded when I found the solution

The short answer is: use Hashrouter.

live app: https://devswag.netlify.app/
stackoverflow: https://stackoverflow.com/questions/27928372/react-router-urls-dont-work-when-refreshing-or-writing-manually
official docs: https://reactrouter.com/web/api/HashRouter
github code: https://github.com/Alidhuniya/devT-shirt-React-with-Contentful

💖 💪 🙅 🚩
alidhuniya
Ali Hussain Dhuniya

Posted on September 9, 2020

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related