4min chapter

JavaScript Archives - Software Engineering Daily cover image

React Best Practices with Kent Dodds (Repeat)

JavaScript Archives - Software Engineering Daily

CHAPTER

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.

00:00

Get the Snipd
podcast app

Unlock the knowledge in podcasts with the podcast player of the future.
App store bannerPlay store banner

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode

Save any
moment

Hear something you like? Tap your headphones to save it with AI-generated key takeaways

Share
& Export

Send highlights to Twitter, WhatsApp or export them to Notion, Readwise & more

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode