illustration for Use Suspense to Simplify Your Async UI
pro

Use Suspense to Simplify Your Async UI

Instructor

Kent C. Dodds

  • reactreact
    0.0.0-experimental-b53ea6ca0
1h 26m closed-captioning
·
18 lessons
Star icon$$$
Star icon$$$
Star icon$$$
Star icon$$$
Star icon$$$
4.7
331
people completed
Published 5 years ago
|
Updated 4 years ago

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

Listen to Kent C. Dodds tell you about this course:

What you'll learn:

  • React Suspense
  • Async State

Learner Reviews

  • Star icon$$$
    Star icon$$$
    Star icon$$$
    Star icon$$$
    Star icon$$$
    What did you like about this course?

    Awesome, awesome, awesome content.

    The eager preload for suspenseList was a really really clever trick.

    I'd love to see a few more example for the fetch-as-you render but that's OK. Everything was crystal clear.

    Keep up the great work Kent!

    Services Epignosis
    4 years ago
  • Star icon$$$
    Star icon$$$
    Star icon$$$
    Star icon$$$
    Star icon$$$
    What did you like about this course?

    Thanks, Kent.

    Pretty clear, great work with the Pokemon app, it made everything even more fun đź‘Ť

    Gus Saiani
    5 years ago
  • Star icon$$$
    Star icon$$$
    Star icon$$$
    Star icon$$$
    Star icon$$$
    What did you like about this course?

    I really enjoyed this course. There was tons of transferable knowledge that I felt could immediately benefit other projects I am working on.

    Another thing that I can't stress enough how much I enjoyed was the brevity of the course. I've seen so many other instructors or courses that seem to subscribe to the "more-is-more" approach, so it's refreshing to finally find a course that is actually digestible, but still packed with information.

    This was my first egghead course, and completely validated my decision to become a subscriber. Thank you!

    Alex
    5 years ago
  • Star icon$$$
    Star icon$$$
    Star icon$$$
    Star icon$$$
    Star icon$$$
    What was your strongest take away from this course?

    Very nice course Kent. Thank you. I enjoy a lot while watching all your courses.

    amiparik
    5 years ago
  • Star icon$$$
    Star icon$$$
    Star icon$$$
    Star icon$$$
    Star icon$$$
    What did you like about this course?

    The progression is well constructed, the course fairly depicts the current situation, and it goes beyond the technical bits and helps me get thinking of micro-interactions I will want to do when Concurrent mode will ship through fine examples :-)

    Yann Picard
    5 years ago
  • Star icon$$$
    Star icon$$$
    Star icon$$$
    Star icon$$$
    Star icon$$$
    What did you like about this course?

    I think, that that kind of courses should be the main core of egghead material. Bravo!

    Kazimirkas
    5 years ago