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.
21. Using URL Routing
Adam Freeman1
(1)
London, UK
In this chapter, I introduce a different approach to structuring the application, which is to select content based on the browser’s URL, known ...
Get Pro React 16 now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.