S
S
semki0962020-08-19 03:16:39
React
semki096, 2020-08-19 03:16:39

What is the argument in the address bar for on a live example of react?

Here is a live example https://dodopizza.ru/ We click on pizza, in the modal window we get data on pizza. Why arguments in the address bar? As far as I understand, here on click we get the id of the pizza, and we can send a request to the api. What role can the argument in the address bar play here?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
B
bkosun, 2020-08-19
@semki096

In this case, the parameters in the address bar are needed so that the user can copy the link to the selected product. It may also be necessary for the correct indexing of the site by search engines.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question