What is React Suspense and how do you use it?
Instruction: Describe the purpose of React Suspense and provide an example of how it can be used for data fetching.
Context: This question tests the candidate's knowledge of React's capabilities for handling asynchronous operations and improving user experience during data loading.
Updated
Official answer available
Read the opening below, then unlock the full answer and practical guidance.
Suspense shows a fallback while a supported child is waiting, such as a lazily loaded component...