Summary
The React library does not incorporate any components or services that can assist in routing. The react-router
routing library can be used in any React application, web or native. The react-router
library, version 4, is a complete rewrite of the earlier versions, and all of its components are written in React.
In this chapter, you learned about the need for routing, how we can configure react-router-dom
, the need for connected-react-router
, and how we can mock the react-router
component.
In the next chapter, we will connect React with Redux, the life cycle component for React, and add other third-party libraries to help us build the UI/UX component.