React Suspense Deep Dive

preview_player
Показать описание
In this tutorial we look at how React Suspense is implemented under the hood. So this allows us to display a placeholder, most likely a spinner, while we are asyncronously downloading data from say and API. Normally we'd have to manage this ourselves and this involves a lot of boilerplate code that we could do without having to write on every component over and over again. Suspense also handles some of the intricacies involded in making this look nice, such as how long to wait until showing the spinner and the ability to coordinate this with other spinners so that we don't get a screen full of them. This is available in the Alpha version of React 18 only at the moment and there may be future changes but hopefully not many now.
Рекомендации по теме
Комментарии
Автор

I wish you were more prepared, the clip could be 2x shorter...

luski