Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

multiple path names for a same component in react router

<Router>
    <Route path={["/home", "/users", "/widgets"]} component={Home} />
</Router>
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #multiple #path #names #component #react #router
ADD COMMENT
Topic
Name
6+6 =