Answer the question
In order to leave comments, you need to log in
How to work with an unknown number of intermediate pages in react-router?
For example, there is the following path /zhenshchinam/verkhniaia-odezhda/mekhovye-zhilety/art0916046. It is not known how many intermediate pages to /art0916046. Now I check like this:
<Route exact path='/:name/:name/:name/art:id' component={ ProductCard } />
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