Design Patterns · Junior · Question 70 of 75
What's the purpose of a fallback UI (e.g. a React error boundary)?
- ✓Correct answer: To show a friendly message for a broken part of the page instead of crashing the whole app
- 2To hide all errors
- 3To retry requests automatically
Explanation
Placing boundaries around independent widgets keeps the rest of the page usable.