10. Advanced Routing Techniques: Special Cases
This chapter will provide you with the knowledge on how to handle nested routes in React. You will be able to optimize your code by effectively creating nested 404 pages, URL parameters, and protected routes. This chapter will equip you with more advanced tools and techniques that are required to implement special use cases of routing, such as page not found, restricted routes, and nesting.
In the previous chapter, we have introduced React Router and saw some practical examples of how to construct simple routes. We now understand what routing is and why React Router v4 is a solid choice when it comes to defining routes, and how to use links, exact matches, and transitions. ...