Need help for routing for project deployed in react

I am able to render the root index.html file but here is the thing, i have used route component for this and the code is working fine locally by giving error i.e routing is not working correctly.
for reference check the link given:

The usual answer for questions like these is: you need the catch-all history pushstate redirect for single page apps, as described here:

As far as I can tell your site is working well now. Could you let me know if you still have problems?

Thanks fool,
Actually I was able to find this redirect solutions earlier this day and managed to apply this to my site and its working totally fine. Thanks for your time.:wink: