If our app has multiple pages, we need to manage the navigation between the different pages. React Router is a great library that helps us do just this!
In this chapter, we are going to build a web shop where we can purchase a few tools for React. Our simple shop will have multiple pages that we'll manage using React Router. The shop will look like the following screenshot when we are finished:
In this chapter, we'll learn the following topics:
- Installing React Router with routing types
- Declaring routes
- Creating navigation
- Route parameters
- Handling not found routes
- Implementing page redirects
- Query parameters
- Route prompts
- Nested routes
- Animated transitions
- Lazy loading routes