13. Managing Data with React Router

Learning Objectives

By the end of this chapter, you will be able to do the following:

– Use React Router to fetch or send data without using useEffect() or useState()

– Share data between different routes without using React's context feature

– Update the UI based on the current data submission status

– Create page and action routes

– Improve the user experience by deferring the loading of non-critical data

Introduction

In the preceding chapter, you learned how to use React Router to load different components for different URL paths. This is an important feature as it allows you to build multipage websites while still using React.

Routing is a crucial feature for many web applications, and React Router ...

Get React Key Concepts 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.