Hello to all!
There are two routes.
const routes = [ {path: "/items", component: Items}, {path: "/item/:id", component: OneItem} ]; In the Items component, I receive data from the server about all the products and display them in the form of links. When you click on one of the links, you are taken to the page of one product, in other words, we get into the OneItem component. What is the right way to get already downloaded data from the Items component from the OneItem component?
Thank you all responded!