Answer the question
In order to leave comments, you need to log in
How to get data for an individual product page?
Hello.
I install the react-router-dom module.
I am creating a product page component.
I am creating a route.
<Route path="/products/:slug" component={Product} />
props.match.params.slug
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