September 2018
Beginner
156 pages
3h 28m
English
The location object gives a snapshot of data representing the current state of the application. It includes the following properties: pathname, hash, search, and state. The navigation components can provide values to these props, which can then be read by the rendered component that matches the browser's URL. As mentioned previously, we will take a look at various navigation components in Chapter3, Using Link and NavLink Components to Navigate to a Route.
The location information is also found in the history object; however, the history object is mutable, and thus, accessing the location in the history object should be avoided.
Read now
Unlock full access