how to link mulitple routes to one component react link code example
Example 1: multiple path names for a same component in react router
<Router>
<Route path={["/home", "/users", "/widgets"]} component={Home} />
</Router>
Example 2: multiple path names for a same component in react router
<Route path={"/home" | "/users" | "/widgets"} component={Home} />