No use of Routes in App.js
Describe the bug
The BrowserRouter is imported and used in index.js but no Routes are being used to render specific Components in App.js , which leads to same render for all the routes. Also, because of this, the component not-found never renders for unknown urls.
To Reproduce Steps to reproduce the behavior:
- Go to 'localhost:3000/'
- This should render the
home-pagecomponent. - But because of no
Routesbeing used, going to 'localhost:3000/any-string' still renders thehome-pageand does not rendernot-foundcomponent.
Expected behavior
Going to localhost:3000/ should render home-page component and for all other unknown routes like 'localhost:3000/example' should render not-found component.
Screenshots
See the URL.
Desktop (please complete the following information):
- OS: [Windows 10 home, any]
- Browser [Chrome, any]
- Version [89.0.4389.114, any]
Smartphone (please complete the following information):
- Device: [any]
- OS: [any]
- Browser [any]
- Version [any]
It's great having you contribute to this project
Welcome to the community :nerd_face:If you would like to continue contributing to open source and would like to do it with an awesome inclusive community, you should join our Discord Server and our GitHub Organisation - we help and encourage each other to contribute to open source little and often 🤓 . Any questions let us know.
Thank you @Yuvrajhere for raising the issue 👍 , I think this repo will need a reboot when we get to it. We are currently focusing on the API repo https://github.com/EddieHubCommunity/api