O'Reilly logo

Pro React 16 by Adam Freeman

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

© Adam Freeman 2019
Adam FreemanPro React 16https://doi.org/10.1007/978-1-4842-4451-7_21

21. Using URL Routing

Adam Freeman1 
(1)
London, UK
 

At the moment, the selection of content displayed to the user is controlled by the application’s state data. Some of that state data is specific to a single component, such as the Selector component, which manages the choice between products and supplier data. The rest of the data is in the Redux data store and is used by the connected components to decide whether the data table or editor components are required and to obtain the data to populate those components’ content.

In this chapter, I introduce a different approach to structuring the application, which is to select content based on the browser’s URL, known ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required