manage multiple routes and sub routes in react router dom best practice code example
Example: react router multiple path
<Router>
<Route path={["/home", "/users", "/widgets"]} component={Home} />
</Router>
<Router>
<Route path={["/home", "/users", "/widgets"]} component={Home} />
</Router>