In this lesson we will learn about Suspense.
React components can use throw to throw a promise, and if the promise is pending the Suspense will display a fallback.
The lesson article and source code are available here:
https://www.academeez.com/courses/react/suspense
#react
0:00 what is suspense
1:50 scenario for using suspense
2:56 Naive solution for scenario
3:47 Problem with Naive solution
6:39 notify with throw
7:29 which parent catch the throw
10:15 more details about suspense
12:44 suspense api
15:16 example suspense
20:15 summary