10. Advanced Routing Techniques: Special Cases

Overview

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.

Introduction

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. ...

Get The React Workshop 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.