Answer the question
In order to leave comments, you need to log in
How to list multiple folders in react-route without creating new routes?
There is this route:
<Route path="test" component={Test1}>
<Route path=":name" component={Name} />
</Route>
<Route path="*" component={NotFound} />
<Route path="test" component={Test1}>
<Route path="name1" component={Name} />
<Route path="name2" component={Name} />
<Route path="name3" component={Name} />
</Route>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question