I wanna to pass a certain url to another page as a variable. That url going to be change for each click from the main page.
ex. We have a main page with multiple video thumbnails and, if we click one of those it will direct to an individual video page with that clicked video details.
I want to set a state, after we click that main page video thumbnail and set it to the video url. For that first of all we need to create a global variable to store video url. That’s my point.