How do I route my custom app to serve the expected rotues

Have you tried this suggestion by @nnkogift:

From this post: Using react-router-dom to transition from one component to another

Without promising you that you will find the exact solution but you might be interested in checking out the other examples and uses where developers have used routes: Search results for '#development Route' - DHIS2 Community