Web App | Fri Apr 08 20222,174 views

Suspense Example

Thumbnail

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.

Youtube GitHub

Go back to Projects

Support Our Community

Take your skills to the next level by enrolling in our courses!

React Native CourseMaster React with TypeScriptMaster Git & GitHubLiveStore Course

Your support helps us continue creating valuable resources for everyone. ❤️