← React Beginner Questions - Set 8 Q75

What is the purpose of React’s Suspense component?

React Beginner Questions - Set 8

Example

<Suspense fallback={<Spinner />}>
  <Profile />        {/* may suspend while it loads */}
</Suspense>

What to notice

← Back to the question list