Issue regarding router

My react app i hosted on GitHub. But there is an issue i found related to routing .
There are four rout this application have.

but if I try to acces , it show 404 status code. but instated of there is no is to go to that route
if you go to first then if you click on bus agency ,it will redirect to
but when I was running this app on my http://localhost:3000 , I have not found any issue to acces http://localhost:3000/bus
how can I resolve this issue

If you want to use client side routing, and you’re using resources like github pages and surge you need to rename your index.html to 200.html

The documentation for surge can explain why you have to rename your file. It’s an almost identical issue with github pages: