Incorporating React-router-dom in Jira Cloud Plugin

I am creating a jira plugin using react as the front end. I have used tabs in the application. I am trying to incorporate routing for these tabs. On clicking one of those tabs, the routing doesn’t change. However, the navigation bar on the left side bar (created through the atlassian-connect.json), does the routing perfectly.
It would be really helpful if someone could tell me how to incorporate the routing system for the tabs/pages that are not mentioned in atlassian-connect-json (or if its necessary to mention all the routes in atlassian-connect.json).

  • Note: When I tried the react routing locally (Without running it on Jira Cloud), the routing works perfectly as expected.