Question · JavaScript and React course · Module 8: Advanced React Patterns
Fallback in React.lazy and Suspense
What does the 'fallback' prop display in a Suspense component during lazy loading?
Answer options
- A blank page with the application logo
- An error message when the component cannot load
- An alternative version of the component for older browsers
- A temporary UI (e.g., spinner or skeleton) displayed until the component loads
You can check the correct answer by solving this task in the CodeWorlds game.