Introduction
In the previous chapter, we have introduced React Router and saw some practical examples of how to construct simple routes. We now understand what routing is and why React Router v4 is a solid choice when it comes to defining routes, and how to use links, exact matches, and transitions.
There are situations, however, that might require you to implement additional functionalities. For example, when we navigate to a page using deep links, links that can be used navigate to a specific indexed page in our application, we may need to pass a few parameters, such as tokens or IDs. In this chapter, we will learn how to handle URL parameters and how to retrieve them via route props. We will also learn how to restrict access to routes, either by preventing navigating out of the current view to prevent losing existing form data or handling and storing navigation into the view layer if the user has no permissions or is not authenticated. This is possible with the use of Higher...