check multiple path in react router 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>