← React Beginner Questions - Set 8 Q75
What is the purpose of React’s Suspense component?
React Beginner Questions - Set 8
Example
1
2
3
<Suspense fallback={<Spinner />}>
<Profile /> {/* may suspend while it loads */}
</Suspense>
What to notice
- Suspense shows the fallback while a child waits — for `lazy`, or for data with a Suspense-aware library.
← Back to the question list