React · Middle · Question 58 of 75
What does <Suspense fallback={<Spinner />}> show, and when?
- ✓Correct answer: The fallback while any child inside is suspended (lazy code or data not ready), then the content
- 2The fallback only when an error occurs
- 3Both the fallback and the content at the same time
Explanation
Suspense coordinates loading for the whole subtree. Errors are handled by error boundaries, not Suspense.