React · Components · Fresh / Intern · Scenario
How do error boundaries work?
Short Interview Answer
Class components implementing getDerivedStateFromError/componentDidCatch catch render errors in subtrees.
Detailed Explanation
They don't catch event handler or async errors. Use for resilient section fallbacks. Libraries exist for function-style wrappers.