The React use() Hook: Reading Promises and Context
use is a React API that reads the value of a resource : a promise or a context. It's unusual because you can call it inside conditions and loops. Reading a promise When the promise is pending, the component suspends and the nearest <Suspense> boundary shows it...