0
I have the following problem:
I have an API in Node.js that returns me id and name of products and supermarkets
When I get into /supermarkets via params url /:idSupermercado
I can get this parameter in the component by this.props.idSupermercado.
So far ok.
I’d like to know how to get a query url.
Ex: the link at the end would look like this localhost:3000/search/idSupermercado/? product=potato
How do I get this ? product=potato in the Komponent?
I’m using Reach router to work with the routes