Using react-router-dom to transition from one component to another

Hello @Orly_MUGWANEZA

I suggest for DHIS2 apps you use HashRouter or MemoryRouter for routing instead of BrowserRouter. See their usages here.

The BrowserRouter has challenges for apps that are not hosted at the base URL. You will have to set the basename prop which is very dynamic for DHIS2 apps (they vary with DHIS2 versions).

1 Like