#1 Data Analytics Program in India
₹2,499₹1,499Enroll Now
6 min read
Question 28 of 48hard

Suspense for Data Fetching

Declarative loading states.

What is Suspense?

Suspense lets components "wait" for something before rendering. It shows a fallback while content is loading.

Use Cases

  • Lazy loading components
  • Data fetching (with supporting libraries)
  • Loading states

Works With

  • React.lazy
  • Next.js / Remix
  • Relay, SWR, React Query