Passing ID to movie route
In the previous lesson we created the
Movie page component which gets displayed after a user clicks an item in the movie list.
However, it will also display if a user navigates directly to the mapped route. How do we display the correct movie info based on the route?
Movie page URLs
Each of our movies can be identified by a unique ID e.g. tt3904432. Once we have that on the movie page, it's easy enough display the movie info by getting the correct data from the API.