DeepFrontend
Learning Paths
Practice
System Design & DS
Design Studio
Data Structures Curriculum
Real-World Case Studies
Careers
Job Board
Resume Builder
Blog
Sign in
Search
⌘K
Go Pro
Loading compiler resources...
JavaScript Quiz Practice
Active Recall Drill Session
← Exit Session
Question 1 of 1
medium
JavaScript
Why don't React Error Boundaries catch an error thrown inside a fetch().catch()-less onClick handler?
A
Error Boundaries are broken in modern React
B
Error Boundaries only catch errors during rendering, lifecycle methods, and constructors — NOT errors in event handlers or async code, which need ordinary try/catch
C
onClick handlers can never throw errors
D
You need to wrap every button in its own Error Boundary
Check Answer