Web App | Fri Apr 08 20222,152 views
Suspense Example
Hello my friend! 👋🏼
This is a Suspense example, which is a React feature that allows you to render a loading state while your component is loading.
About this app
This tutorial is perfect to get familiar with the Suspense feature since it seems like it's going to be a common feature in the future.
Dependencies
In this project we are using npm
npm install swr
We use SWR to fetch data from the randomuser.me API.
Conclusion
As I said at the beginning, Suspense is a great feature and we as developers should get familiar with it.
Links
Go back to Projects