Use Suspense to Simplify Your Async UI

1h 26m
Star icon$$$
Star icon$$$
Star icon$$$
Star icon$$$
Star icon$$$
4.7
331
people completed
Bookmark
Download
RSS

🚧 SUSPENSE IS EXPERIMENTAL

One of the biggest challenges to writing software for the web is dealing with asynchrony, but we have to deal with it all the time.

This leads to a bunch of boilerplate code for handling loading and error states just to get the data we need to show the user-- whether the data comes from a remote endpoint or from browser APIs like geolocation and Bluetooth.

The end result is countless spinners and the dreaded FOLC (flash of loading content).

React Suspense is the answer to these problems.

React Suspense is a primitive built-into React that drastically simplifies asynchronous state management in our applications, and helps you avoid FOLC out of the box.

It's a bit of a different approach to managing these problems and understanding how it works is key to taking advantage of what it has to offer.

In this workshop, you'll learn how Suspense works under the hood, preparing you for the future of asynchronous state management.

Instructor

Kent C. Dodds

Kent is a JavaScript developer who likes open source and teaching.

He is currently working for himself as a full-time educator. Before going full-time on education, Kent worked at PayPal. During his time there he represented the company on the TC39 committee and started several Open Source projects, notably glamorous💄, downshift 🏎️ and dom-testing-library 🐙.

What you'll learn

  • React Suspense
  • Async State

Course content (18 lessons)

    illustration for Use Suspense to Simplify Your Async UI