JavaScript Archives - Software Engineering Daily cover image

React Best Practices with Kent Dodds (Repeat)

JavaScript Archives - Software Engineering Daily

00:00

React - Suspense Improves Synchronous Loading

The web is inherently a synchrones. Not only like o waiting for buttons to be quicked or the user to do something, but also the network. When the ap gets loaded, we need to go make a request. The user quicks on this button, and so now we got to go request more data,. We can't actually show them anything useful until that stuff comes back. So suspense allows you to create s boundaries around areas of ourreact component try to say here in am if any of these components says that it's not ready, we call that suspending. And then once that a suspending component has received its data, then it informs reacte i'm ready to render.

Transcript
Play full episode

The AI-powered Podcast Player

Save insights by tapping your headphones, chat with episodes, discover the best highlights - and more!
App store bannerPlay store banner
Get the app