Answer the question
In order to leave comments, you need to log in
How to properly render the product/article/etc itself when it is opened?
Let's say we have a list of products. When you click on the product itself, I have to display it by displaying all the information about it. How to do it right?
I know a way with route parameters:
<Route path="/products/:id" render={(id) => <ProductСard id={id} />} />
Well, based on the route parameter (id), I render the product itself. But how correct is this approach? 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