Answers for "i want a few paths to lead to the same component in react"

1

multiple path names for a same component in react router

<Router>
    <Route path={["/home", "/users", "/widgets"]} component={Home} />
</Router>
Posted by: Guest on June-06-2020

Code answers related to "i want a few paths to lead to the same component in react"

Browse Popular Code Answers by Language