12 Integrating data fetching with Suspense

This chapter covers

  • Wrapping promises to access their status
  • Throwing promises and errors when fetching data
  • Using Suspense components to specify fallback UI when loading data and images
  • Fetching data and resources as early as possible
  • Recovering from errors when using error boundaries

The React team has a mission to maintain and develop a product that makes it as easy as possible for developers to create great user experiences. In addition to writing comprehensive documentation, providing intuitive and instructive developer tools, authoring descriptive and easily actionable error messages, and ensuring incremental upgrade paths, the team wants React to make it easy to provide fast-loading, responsive, ...

Get React Hooks in Action 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.