Cheers!
The the trackId
variable is being passed into the Track component on page load, then used as a variable for the useQuery hook. It’s obviously being pulled from the Route’s url /:trackId
since I can navigate directly to the page, and the component receives the trackId
as a prop.
But, how the heck is the component getting the trackId
variable without a useParams
hook from react-router
?